Skip to content

A Python application that scrapes event information from a website, saves it to a database, and automatically sends email notifications when new events are detected.

License

Notifications You must be signed in to change notification settings

DziwiszBB/Event-Scraper-Notifier-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎟️ Event Scraper and Email Notifier

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.

🌍 Overview

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.

🚀 Features

  • Web scraping using Selectorlib
  • Data extraction and storage in SQLite database
  • Automated email alerts via SMTP
  • Continuous monitoring with a 2-second interval

🛠️ Technologies Used

  • Python
  • Requests
  • Selectorlib
  • SQLite3
  • smtplib

📦 Installation

  1. Clone the repository:

    git clone https://github.com/DziwiszBB/event-scraper-email-notifier.git
    cd event-scraper-email-notifier
  2. Install the required packages:

    pip install -r requirements.txt
  3. Set up your email credentials inside main.py:

    username = "[email protected]"
    password = "your_app_password"
    receiver = "[email protected]"
  4. Run the application:

    python main.py

📄 Files

  • main.py — Main scraper and email sender
  • example.py — Examples of database operations
  • extract.yaml — CSS selectors configuration
  • data.txt — Sample events data
  • data1.db — SQLite database file (generated automatically)

📁 Database Structure

Column Type Description
Band TEXT Name of the band
City TEXT City of the event
Date TEXT Date of the event

📸 Screenshots

1. Web Page Scraping

View of the website showing an upcoming concert event extracted by the application.

Web Scraping View

2. Terminal Output

Terminal output showing detected new events and their storage.

Terminal Output

3. Database Records

View of the SQLite database containing scraped event information.

Database Records

4. Email Notification

Example of an automated email notification about a newly found event.

Email Notification

📄 License

This project is licensed under the MIT License – see the LICENSE file for details.

🙋‍♂️ Author

Piotr Dziwisz
LinkedIn | GitHub

About

A Python application that scrapes event information from a website, saves it to a database, and automatically sends email notifications when new events are detected.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages