A Python-based application that scrapes upcoming events from a website, stores new events in a SQLite database, and sends email notifications when new events are found.
This project automatically monitors a webpage for new event announcements. If a new event appears, it is saved in the local database, and a notification email is sent to the user.
- Web scraping using Selectorlib
- Data extraction and storage in SQLite database
- Automated email alerts via SMTP
- Continuous monitoring with a 2-second interval
- Python
- Requests
- Selectorlib
- SQLite3
- smtplib
-
Clone the repository:
git clone https://github.com/DziwiszBB/event-scraper-email-notifier.git cd event-scraper-email-notifier
-
Install the required packages:
pip install -r requirements.txt
-
Set up your email credentials inside
main.py
:username = "[email protected]" password = "your_app_password" receiver = "[email protected]"
-
Run the application:
python main.py
main.py
— Main scraper and email senderexample.py
— Examples of database operationsextract.yaml
— CSS selectors configurationdata.txt
— Sample events datadata1.db
— SQLite database file (generated automatically)
Column | Type | Description |
---|---|---|
Band | TEXT | Name of the band |
City | TEXT | City of the event |
Date | TEXT | Date of the event |
View of the website showing an upcoming concert event extracted by the application.
Terminal output showing detected new events and their storage.
View of the SQLite database containing scraped event information.
Example of an automated email notification about a newly found event.
This project is licensed under the MIT License – see the LICENSE file for details.