Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.3 KB

README.md

File metadata and controls

39 lines (29 loc) · 1.3 KB

WebScrapping_linux

This project is composed of three files :
- scrapping.sh
- stats.sh
- test.sh

Scrapping.sh

The job of this first file is to scrap the data from the website. Here, it finds the value of the bnb (Binance Coin) and sends it to a telegram address. Furthermore, it also saves the value in a text file for later.

Stats.sh

This script takes the takes the file in which the values scrapped by the first script are saved and computes the minimal value, the maximum value and the mean.

Test.sh

The last file is a test that both recovers the data and calculates them over an interval defined when it is launched. It doesn't send any message to telegram, it just echo them.


For both scrapping.sh and stats.sh, we use crontab -e to launch the scripts every 5 minutes for the first one and every day at 18 o'clock for the second one.
crontabInterface



And this is the result on the telegram bot with scrapping.sh being executed every minutes and stats.sh every ten minutes :

telegramOutput