emiride / olxApartmentNotifier

Scraping tool to get newest apartment links with email notifications using GitHub Actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

olxApartmentNotifier

Scraping tool to get newest apartment links with email notifications using GitHub Actions

Get links to latest apartments from the biggest e-commerce Bosnian site olx.ba

Usage

In file apartment_notify/scraper.py replace the value of the url with wanted.

In this GitHub Action, we are showing two possible ways of sending emails:

  • Using SMTP protocol
  • Using Sendgrid

We need to setup environment secrets in the repository settings Action Settings:

  • EMAIL_PASSWORD - password related to email and username used to login on GitHub
  • SENDER_MAIL_USERNAME - Sender Gmail
  • SENDER_MAIL_PASSWORD - password of sender Gmail
  • SENDGRID_API_KEY - Sendgrid API Key

Note:

To use SMTP protocol we need It to enable access for less secure apps on Gmail.

https://stackoverflow.com/questions/45886791/unable-to-login-to-gmail-imaplib-error-alert-please-log-in-via-your-web-brow/61021726#61021726

As machines where GitHub Actions are changing for every execution. We should enable access for less secure apps really often.

To use Sendgrid we need to create an account and mailer.

About

Scraping tool to get newest apartment links with email notifications using GitHub Actions


Languages

Language:Python 79.5%Language:JavaScript 20.5%