GithubHelp home page GithubHelp logo

max-unfinity / krisha.kz-parser Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 291 KB

Scrapy parser for https://krisha.kz

License: MIT License

Python 16.14% Jupyter Notebook 83.86%
parser parsing scrapy krisha

krisha.kz-parser's Introduction

krisha.kz Scrapy parser


This script parses prices on real estate at https://krisha.kz for further analysing.

Running script

To start parsing you need scrapy installed:

pip install scrapy

  1. Go to https://krisha.kz and set parameters you need:

  1. Click on “Показать результаты”

  2. Copy a link of this page(Chrome: Ctrl+L, then Ctrl+C). It will be the base_url parameter.

  3. Go to the end of the page, find the number of the last page (54 in this example). It will be the n_pages parameter.

  1. In command line run:
scrapy crawl prices_spider -a base_url="YOUR_BASE_URL" -a n_pages=YOUR_N_PAGES -O output/test.json

 

Setting delay

By default script handles 1 page per 3 sec. Delay is made to don’t get muted or banned by krisha.kz. You can change this parameter in krisha/settings.py by setting DOWNLOAD_DELAY.

Caution: if you are parsing many pages at once (10+), you better don’t change this delay.


My analysis for Astana and Almaty

(from rent_price_analysis.ipynb)

Some results I've got after analysing appartments for a rent in Astana and Almaty:

Long-term rent:

Short-term rent:

krisha.kz-parser's People

Contributors

max-unfinity avatar

Stargazers

 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.