Giter Site home page Giter Site logo

peterwade153 / house-bob Goto Github PK

View Code? Open in Web Editor NEW
13.0 1.0 8.0 82 KB

A django application for scraping properties with scrapy.

License: GNU General Public License v3.0

Python 76.31% CSS 1.12% HTML 21.42% Makefile 1.15%
django scrapy python celery redis crawling

house-bob's Introduction

house-bob

Build Status

Description

A Django, Scrapy application which pulls properties data .i.e houses and offices available for rent in Kampala and neighbouring districts. The Scraped data containing property price, location, district, bedrooms, bathrooms, status whether its available for rent or sale and agent details is then saved in a Postgres database.

Its uses Django 3.0 and Scrapy 2.0

Installation

Create a virtual env and activate it.

Clone the project

git clone https://github.com/peterwade153/house-bob.git

Create a Postgres Database.

Create a .env file from the .env.example and replace with the actual values.

Install Dependencies.

pip install requirements.txt

Run migrations with the command below

make migrate

Create a superuser to access to the admin page, run the command to register.

make superuser

To crawl properties with the command below

make crawl

To view the crawled properties, run the server

make start

Visit 127.0.0.1/admin and login with the superuser account credentials, created earlier. Properties can also be added / removed from here

To view dashboard Visit 127.0.0.1 after starting the server.

To run tests

make test

The Scraping is automated to run, every sunday midnight. This requires installation of redis as a broker. start the redis server

redis-server

In another terminal, start the worker.

make celery-worker

In another terminal, start the beat.

make celery-beat

Developer :- Peter, reach him at [email protected].

house-bob's People

Contributors

peterwade153 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar drodol avatar  avatar Kishoraditya Chaudhari avatar  avatar Ephraim (Folmi) Daniel avatar Paul Chibueze avatar William avatar  avatar Ivan Yastrebov avatar Edanur BAKSIN avatar Sagi Sagimbayev avatar

Watchers

 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.