Coder Social home page Coder Social logo

flavioelawi / scrapy-idealista Goto Github PK

View Code? Open in Web Editor NEW

This project forked from david-carrasco/scrapy-idealista

0.0 0.0 0.0 91 KB

Scrapping data from Real Estate site www.idealista.com

License: GNU General Public License v2.0

Shell 1.75% Python 89.02% Dockerfile 9.23%

scrapy-idealista's Introduction

Scrapy-Idealista

Description

Scrapping data from Real Estate site www.idealista.com

Requirements

  • >= python3.6.*
  • pip

Execute to install pip packages:

pip install -r requirements.txt

How to crawl Real Estate info from a URL in idealista website

  1. Add the URL to be crawled in the variable start_urls in ./idealista/spiders/idealista_spider.py. Example:
start_urls = ["http://www.idealista.com/venta-viviendas/madrid/retiro/"]

Note: crawl only one url since all records will be exported to the same csv file

  1. At the top of the project, execute the following command to crawl the URL saved in start_urls:
scrapy crawl idealista -t csv -o <flats_file>.csv

Note: where <flats_file> is the csv file where all the records are saved

Use with Docker

  1. Download repository:
git clone [email protected]:David-Carrasco/Scrapy-Idealista.git
  1. Build image: Note: Remember modify your URL to crawl.
docker build -t <image>:<tag> .
  1. Run container:
docker run --name <name_container> --rm -it -v <your-dir>:/data <image>:<tag> <flats_file>

Your data will appear on <your-dir> directory such as idealista.csv by default or with your <flats_file> filename. Example:

docker run --name scrapy_idealista --rm -it -v /home/myuser/idealista:/data scrapy_idealista:latest

scrapy-idealista's People

Contributors

david-carrasco avatar ialejandro avatar flavioelawi avatar aquaerius 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.