Skip to content

codigourbano/bikesampa-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bike Sampa Scraper

A Javascript client to scrape data from Bike Sampa, a bicycle sharing system in São Paulo.

Install

npm install codigourbano/bikesampa-scraper

Example

The following code will log to console station names and bikes available:

var scraper = require('bikesampa-scraper');
scraper.scrape(function(err,stations){
  if (err) return console.log(err);

  for (var i = 0; i < stations.length; i++) {
    var st = stations[i];
    console.log(st.name + ': '+ st.units);
  }
});

Development

Write tests and run:

npm test

Currently tests are made directly to the live map.

About

A Javascript client to scrape Bike Sampa data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors