Skip to content

zats/Bicycle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bicycles! Scrapers! 🐮🐶 Moof!

Endpoints

Database

  • /db/setup - sets up a database when run on a clean local enviroment Currently, purges all the existent records
  • /db/test - writes a test record in the database. Don't forget to remove it!

API

  • /api/1/<service>/stations - fetches all stations of the specified service.
  • /api/1/<service>/statistics?station_ids=[a,b]&time_ranges=[0-10,50-100] - fetches statistics of the specified service. See statistics for more details.

Deprecated

  • /api/1/<service>/scrape - triggers scraping of the selected service. Normally performed by cron task.

Statistics

{
  "response": {
    "statistics": [
      {
        "stations": {
          "121": csv_data,
          "343": csv_data
        },
        "service": "telofun"
      }
    ]
  }
}

Where csv_data is samples_count, available_docks, hour_of_week, available_bicycles

Utility

Getting app quota

$ rhc show-app bicycle --gears quota

About

Bicycles! Scrapers! 🐮🐶 Moof!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published