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
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 GitHubSENDER_MAIL_USERNAME
- Sender GmailSENDER_MAIL_PASSWORD
- password of sender GmailSENDGRID_API_KEY
- Sendgrid API Key
Note:
To use SMTP protocol we need It to enable access for less secure apps on Gmail.
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.