Code Monkey home page Code Monkey logo

kivacrawler's Introduction

Kiva Team Crawler

This is going to crawl Kiva.org for the teams a lender belongs to. This information is not avalible through their daily snapshot The get request for the team is sent to http://api.kivaws.org/v1/lenders/{lender_name}/teams.json For more information refer to http://build.kiva.org/docs/data/lenders

Setting up

This project expects the kiva daily snapshot to be in a folder in the same directory as the folder containing the kiva.js that does the crawling. We are expecting the kiva daily snapshot folder to have the default name of kiva_ds_json and the lenders folder inside to have the default name of lenders To get the kiva daily snapshot use their url http://build.kiva.org/docs/data/snapshots

Setting up Node

To see if node is installed run ''' node -v '''

if that commend is not intalled you will need to install node can be done with Mac Ports and Home Brew ''' port install nodejs ''' ''' brew install node ''' or you can download it from their main sites http://nodejs.org/#download

How to run

after cloning the repo, go inside the repo folder and run ''' node kiva.js startNumber endNumber ''' above the start number if the first file that will be read, ie if you send 1 it will read 1.json and crawl it for end number, it stops before getting to that number, for example ''' node kiva.js 1 5 ''' will get teams for lenders in json files 1, 2 ,3 ,4 but not 5

Happy Crawling !

kivacrawler's People

Contributors

abeadam avatar

Stargazers

Jeremy avatar

Watchers

James Cloos avatar  avatar

Forkers

hsri fengfengyuyu

kivacrawler's Issues

Exposed information!?

The teams directory contains JSON files that seem to hold private information. These files should not be part of the public Git repo.

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.