Skip to content

Create a map out of Kijiji ad feeds, useful for browsing apartments for instance.

Notifications You must be signed in to change notification settings

benwah/kijiji-mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KIJIJI MAPPER

Outputs a map of places from Kijiji by scraping its HTML and making calls to Google geo-location API.

Setup:

  • Git clone
  • Install dependencies: python setup.py develop
  • Go here: https://console.developers.google.com, create a project and enable google APIs:
    • Google Maps Geocoding API
    • Google Maps JavaScript API
  • Get your credentials from Google API Coneole. (API Keys, "Server" and "Browser" key)
  • Copy those to secrets.yml, see secrets.yml.example to get an example.
  • Edit run.py. Things you might need to change:
    • DEFAULT_PAGES (how many pages to crawl?)
    • DEFAULT_URL_TEMPLATE
    • DEFAULT_MAP_CENTER defaults to Ottawa. Change the lat & long for where you're looking for a place.
  • Finally execute using python run.py. When it's done doing its thing, if it encountered no errors, you'll have a file called "map.html". Open it and have browse places!

About

Create a map out of Kijiji ad feeds, useful for browsing apartments for instance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages