Giter VIP home page Giter VIP logo

apartment-scrapper's Introduction

Apartment-scrapper

This is a web application intended to scrap a specific website in order to get email notifications about new properties with specific parameters in a specific location.

Getting started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Install all required modules running pip with the provided file:

$ pip install -r requirements.txt

Installing

As a first step, you need to create locally PostgreSQL database named 'apartments'.

Secondly,copy the .env.sample as .env and fill with your PostgreSQL credentials, and credentials for your scraper working email, which is going to be used in the process of sending notifications, and declare the recipient of notifications.

USERNAME=sample_username
PASSWD=XXXXXX
HOSTNAME=sample_hostname
DB_NAME=apartments
[email protected]
MAIL_PASSWORD=XXXXXX
[email protected]

Running locally

With ready empty DB, and filled .env file you're ready to run and receive your first email notifications:

Example:

$ python main.py -mp 600000 -d 3 -mf 6 -s 3

where:

optional arguments:
  -h, --help            show this help message and exit
  -mp MAX_PRICE, --max_price MAX_PRICE
                        Max price
  -d DAYS_RECENCY, --days_recency DAYS_RECENCY
                        Ad recency 1 or 3
  -mf MAX_FLOOR, --max_floor MAX_FLOOR
                        Max desired floor
  -s SIZE, --size SIZE  Min amount of rooms

Future functionality

Selecting specific districts.

apartment-scrapper's People

Contributors

juju-and avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.