https://github.com/fernandod1/lottery-numbers-scraper
Script to scrap lottery numbers from Lottomatica Italia website and inserts data into MySQL database.
https://github.com/fernandod1/lottery-numbers-scraper
loteria loterias lottery lotto-numbers php php-script php-scripts scraper scraping scraping-websites scrapper scrapping scrapping-php
Last synced: 2 months ago
JSON representation
Script to scrap lottery numbers from Lottomatica Italia website and inserts data into MySQL database.
- Host: GitHub
- URL: https://github.com/fernandod1/lottery-numbers-scraper
- Owner: fernandod1
- License: other
- Created: 2020-06-13T12:59:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-02T12:31:16.000Z (over 4 years ago)
- Last Synced: 2025-01-12T00:28:48.524Z (4 months ago)
- Topics: loteria, loterias, lottery, lotto-numbers, php, php-script, php-scripts, scraper, scraping, scraping-websites, scrapper, scrapping, scrapping-php
- Language: PHP
- Homepage: https://www.fernando.info
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.