Skip to content

fernandod1/Lottery-numbers-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Lottery numbers scraper

Script to scrap lottery numbers from Lottomatica Italia website ( https://www.lottomaticaitalia.it ) and inserts data into MySQL database.


Configuration

1.) Open file lottery.php using a text editor and modify the following lines to use your MySQL hosting configuration:

$mysqlserverhost = "MYSQL_HOST";

$database_name = "MYSQL_DATABASE_NAME";

$username_mysql = "MYSQL_USERNAME";

$password_mysql = "MYSQL_PASSWORD";

2.) Upload file “lottery.php” to your hosting account.

3.) Create a conjob entry in your server so that scripts is executed every 5 minutes and stores new data in database. The exact command you must use in crontab is:

*/5 * * * * /usr/bin/wget -q https://www.yourwebsite.com/lottery.php > /dev/null 2>&1

Done.

About

Script to scrap lottery numbers from Lottomatica Italia website and inserts data into MySQL database.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages