Coder Social home page Coder Social logo

re4-notifyer's Introduction

Scraping and Email Notification Script

This script is used to scrape search results for a specific keyword (Resident Evil 4) from a website (https://www.euro.com.pl/) and send an email notification when the number of search results has increased using OAuth 2.0. This is a simple project for my girlfriend for her to be able to buy colectioner's ediiton of RE4 :)

Prerequisites

  • Python 3
  • requests, beautifulsoup4, google-auth, google-api-python-client, datetime libraries
  • Google account with access to the Google API
  • OAuth 2.0 credentials for your Google account

Setup

  1. Clone the repository.
  2. Install the necessary libraries.
  3. Replace [email protected] in the script with your email address.
  4. Replace YOUR_CLIENT_ID, YOUR_PROJECT_ID, YOUR_CLIENT_SECRET in the script with the actual values from your project's credentials.
  5. Modify the script to scrape the desired website and search results for the desired keyword.
  6. Run the script.

This script is set up to run indefinitely, checking for changes in the search results every 30 seconds. If the number of search results increases, an email will be sent to the provided email address. Please note that the script uses OAuth 2.0 authentication to access the user's Gmail account and send emails.

Error handling

In case the website structure changes or there is a pop-up on the page, the script continues working.

re4-notifyer's People

Contributors

magda2307 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.