Skip to content

pgoelter/PS5-Instock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A small console application to check whether one or more product, specified in a config file is available for sale. The given configuration checks if the Playstation 5 is available in some german online shops. Availability check happens by checking whether an add to cart button is available or not. If it is available an email with the respective URL is sent to receivers specified in the config file.

The e-mail used to send the notification mail is also configured in the config file.

Setup

  1. Create virtual environment with anaconda, venv or similar.
  2. Activate environment
  3. Install dependencies with pip install -r requirements.txt
  4. Setup Configuration as described in Chapter Setup Configuration.
  5. In activated environment run with python core.py

Setup Configuration

Explained with the following sample configuration.

{
  "mail": {
    "login": "MAIL_ADDRESS",
    "password": "PASSWORD_MAIL",
    "receivers": ["RECEIVER_MAIL_1", "RECEIVER_MAIL_2"],
    "smtp_host": "smtp.gmail.com",
    "smtp_port": 587
  },
  "checkInterval": 120,
  "vendors": [
    {
      "vendor": "Vendor",
      "url": "Url to product on vendor site",
      "lookfor": "pdp-add-to-cart-button"
    }]
}

mail.login : E-mail address used to send notifications.
mail.password : Password for e-mail address.
mail.receivers : List of receiver mail addresses.
mail.smtp_host : The smtp server address of your mail provider. Sample is configured for gmail accounts.
mail.smtp_port : Port of the smtp server.

checkInterval : Interval in seconds in which the product is checked for availability.

vendors.vendor : Name of the vendor.
vendors.url : Url to the product of the vendor.
vendors.lookfor: Selector of the add to cart or buy button.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages