Skip to content

mratkovic/njuskalo-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

njuskalo-notifier

njuskalo.hr scraper that alerts when new ads matching given filters appear

Install:

pip3 install -r requirements.txt
python3 setup.py install

Usage:

$ njuskalo-notifier --help

usage: njuskalo-notifier [-h] [-c CONFIG]

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        path to config file

Specify in config_example.ini URLs you want to parse, email settings, pipelines...

To disable email notifications simply comment out line sniffer_scraper.pipeline.EmailPipeline = 400 By default SQLite database ads_dump.db is created with all parsed information.

Single run

njuskalo-notifier -c config_example.ini

Schedule

Scheduled run can be achieved using bash command cron.

Run crontab -e and add something like:

# m h  dom mon dow   command
0 9,19 * * * /usr/local/bin/njuskalo-notifier -c path-config/config_example.ini >> log_output_dir/njuskalo.log 2>&1

Note:

Not tested on Windows - possible additional dependencies required. Should work using WSL (Windows Subsystem for Linux)

About

njuskalo.hr scrapper that alerts when new ads matching given filters appear

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages