Follow ads for your chosen category on OLX.pl
It is the python app - Web Scraper for checking and saving list of active ads in chosen category.
Make sure you have installed:
You can choose between two options of notifying
- By telegram message (preferred option)
- By e-mail
To do so you first need to configure your telegram_send
package.
To do so:
- First create your new telegram bot by writing on telegram to the
BotFather
on telegram, and create new bot by using command/newbot
. - After filling all needed data you will be given you HTTP API token for your bot.
- In CLI use command
telegram-send configure
- paste your token there, then add your freshly created bot on telegram and send him your activation password (code). - Voi'la - you can simply use your bot!
For best experience you should use gmail along with per-app-password for your script. More about App Password for gmail - here
You should fill file named:
passes.txt
Data examples:
- Recipient Email
- Sender Email address
- Sender Email app-password
To start - just run the following command at the root of your project like e.g.:
python3 main.py --url <your-url> --notify telegram
python3 main.py --url <your-url> --notify mail
python3 main.py --notify no-notify
Or schedule it to run every X minutes on your machine, by using e.g. crontab like:
| every 10min | your path to scrapper catalog | path to your python | parameters
*/10 * * * * cd /home/{your-user}/Olx-Notifier; /usr/bin/python3 main.py --notify telegram
👤 Kamil Gustab
- Github: @gustab.kamil