Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bartekpog/otomoto-mail-notifier

A bot that checks if a car matching given requirements exists and sends an email.
https://github.com/bartekpog/otomoto-mail-notifier

mail notification otomoto scraper

Last synced: 17 days ago
JSON representation

A bot that checks if a car matching given requirements exists and sends an email.

Awesome Lists containing this project

README

        

# OTOMOTO Search notifier

Get an email when a car matching your requirements is posted on [Otomoto](https://otomoto.pl/).

##### Requirements

- Python 3
- Selenium web driver
- New Gmail account with [enabled insecure apps](https://hotter.io/docs/email-accounts/secure-app-gmail/)
- Google Chrome

##### Env variables

| Key | Description | Example |
| -------------- | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| MAIL_RECEIVER | Email address of the person that should get notified | [email protected] |
| GMAIL_EMAIL | Bot's account Gmail address | [email protected] |
| GMAIL_PASSWORD | Password to the bot account | admin |
| OFFERS_URL | Url to the search page with applied filters | **[This url](https://www.otomoto.pl/osobowe/zuk/katowice/?search%5Bfilter_float_price%3Ato%5D=40000&search%5Border%5D=created_at%3Adesc&search%5Bbrand_program_id%5D%5B0%5D=&search%5Bdist%5D=115&search%5Bcountry%5D=)** |

##### Instalation steps

1. Start by cloning this repository.

1. Create a way of securely storing environment variables, or paste them into the `sourceConfExample.sh`

1. Then add the script to your CRONtab
For example:
`0 */2 * * * source pathToRepo/sourceConfExample.sh && python3 pathToRepo/main.py`