Skip to content

mlubej/nepremicnine-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nepremicnine.net Alert Bot

Simple bot which sends an email when a new ad on is posted on nepremicnine.net.

The code is focused on buying flats. Might need some custom updates for querrying houses or looking for a place to rent.

Prerequisites

chromedriver

Install chromedriver on your system. Firefox driver is currently not supported. PRs welcome.

Requirements

Install requirements

pip install -r requirements.txt

Set up env

This package uses the .env file to read the gmail username and password. Set them there in the form of

[email protected]
GMAIL_PASSWORD=<your-app-password-here>

Sending via gmail will not work with your standard password, you have to generate an application-specific password in your account. More info here.

How to run

Quick example

Run a similar example as below. The first run will trigger a database fill. All later runs check the new entries agains the existing ones and send an email if a new ad is posted.

$ python nepremicnine_alert.py \
    --url "https://www.nepremicnine.net/oglasi-prodaja/ljubljana-mesto/stanovanje/3-sobno/cena-od-200000-do-300000-eur,velikost-od-50-do-100-m2" \
    --out_path "./nepremicnine_entries.csv" \
    --recepient "[email protected]" \
    --recepient "[email protected]"

Works best run as a cron job.

More details

Options:
  -u, --url TEXT        Base URL with the search criteria.  [required]
  -o, --out_path TEXT   Name of the database file.
  -r, --recepient TEXT  Email of the recepient. Provide each recepient separately. [required]
  --help                Show this message and exit.

Specific querying

Simply include any search criteria of interest in the URL, e.g. https://www.nepremicnine.net/oglasi-prodaja/ljubljana-mesto/stanovanje/3-sobno/cena-od-100000-do-300000-eur,velikost-od-50-do-100-m2/

About

Simple bot for alerting new ads on nepremicnine.net

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages