Skip to content

Instantly share code, notes, and snippets.

View ganeshraj's full-sized avatar

Ganesh Raj Kumaraguru ganeshraj

  • San Francisco
View GitHub Profile
@nubela
nubela / scraper.py
Created November 20, 2014 16:13
PropertyGuru scraper because why the f*ck do websites block copy paste?
import json
from BeautifulSoup import BeautifulSoup
import requests
FILE_NAME = "result.txt"
BASE_URL = "http://www.propertyguru.com.sg/"
URL = "http://www.propertyguru.com.sg/singapore-property-listing/property-for-rent/%d?property_type=H" \
"&property_type_code[]=HDB&minprice=1500&maxprice=2500&minsize=1000&distance=0.5&center_lat=1" \