Skip to content

stadtulm/gbfs-station-status-archiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GBFS station_status archiver

This is a small tool to periodically request the status of stations of a GBFS-Feed and save them to a sqlite file. Currently free floating bikes are not supported.

the result file containes the following columns:

  • timestamp: timestamp of the last_updated field of station_status.json
  • station_id
  • num_bikes_available
  • station_name at time of request
  • lat and lon of the station at time of request

station_name, lat, lon are saved, because sometimes operators change this, without changing the station_id

Usage

python3 scrape.py --sqlite <sqlite filename> --gbfsurl <URL of gbfs.json> --interval <seconds between reqeusts>

You might install requests before first use: pip3 install -r requirements.txt

About

saves GBFS station status to a sqlite database

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages