GithubHelp home page GithubHelp logo

toddlarson5 / kijiji-mapper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benwah/kijiji-mapper

0.0 1.0 0.0 10 KB

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

Python 67.30% HTML 32.70%

kijiji-mapper's Introduction

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!

kijiji-mapper's People

Contributors

benwah avatar

Watchers

James Cloos 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.