Skip to content

Scrap houses for (rent/buy) from websites and display them in one map!

Notifications You must be signed in to change notification settings

coot/housescrap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

housescrap

A lot of house finder are just crap, right? So, let's scrap their houses and display them in a proper map!!

Live demo

picture

Installation

sudo easy_install pip
sudo pip install Scrapy
sudo pip install pil
gem install serve-this
wget https://httplib2.googlecode.com/files/httplib2-0.8.tar.gz
tar xvzf httplib2-0.8.tar.gz
cd httplib2-0.8
sudo python setup.py install

Usage

./script/start.sh

Hack

How to add a new crawler : copy one from house/spider

Start a scrapy shell :

scrapy shell http://www.custojusto.pt/Lisboa\?ca\=14_s\&th\=1\&q\=\&cg\=1020\&w\=114%3A213\&st\=u\&ps\=3\&pe\=5\&ros\=3\&roe\=5\&ss\=\&se\=\&sl\=

# and try to find the right div with the help of inscpect element of chrome and/or Firebug
# and replace in the python file of the spider
>>> houses = hxs.select('//div[contains(@class, "lista")]')
>>> house = houses[0]
>>> house.extract()
....

About

Scrap houses for (rent/buy) from websites and display them in one map!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published