Skip to content

Al3xGROS/WebScrapping_linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages