pierlauro / bikemi-unofficial-api

Script di estrazione dati relativi alle stazioni del bike sharing del comune di Milano


BikeMI Unofficial API

Script di estrazione dati del bike sharing del comune di Milano.

Restituisce un JSON contenente le seguenti informazioni per ogni stazione: * ID * Nome * Biciclette disponibili * Biciclette elettriche disponibili * Stalli liberi * Latitudine e longitudine

Per utilizzarlo è possibile servirsi dello scraper inizializzato su morph.io (attenzione: il run su morph deve avvenire manualmente - scaricare localmente per richieste real-time)

Contributors pierlauro

Last run completed successfully .

Console output of last run

Injecting configuration and compiling... Injecting scraper and running...

Data

Downloaded 107 times by framecode lethux thisisjp marcoaltomonte milanimarco82 pierlauro MikeRalphson

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (21 KB) Use the API

rows 10 / 261

longitude available_racks id title available_bikes latitude available_electric_bikes
9.18879747390747
2
1
Duomo
20
45.464683238626
2
9.197659492492676
10
2
San Babila
3
45.4663612119451
10
9.175646603107452
12
3
Cadorna 1
5
45.4679573094956
4
9.18194442987442
5
4
Lanza
14
45.4722976762067
2
9.17644590139389
3
5
Università Cattolica
20
45.4630672955861
1
9.18361410498619
5
6
San Giorgio
17
45.4608746934565
1
9.18682873249054
4
7
Santa Maria Beltrade
19
45.4627662999143
1
9.190224409103394
9
8
Velasca
11
45.460017758853006
3
9.195329993963242
1
9
S. Stefano
14
45.4623797062408
2
9.188346862792969
6
10
Missori
12
45.4613233795961
3

Statistics

Average successful run time: 2 minutes

Total run time: 17 minutes

Total cpu time used: less than 10 seconds

Total disk space used: 92.9 KB

History

  • Manually ran revision d36d72cf and completed successfully .
    261 records added, 261 records removed in the database
  • Manually ran revision d36d72cf and completed successfully .
    261 records added, 261 records removed in the database
    1 page scraped
  • Manually ran revision d2faa36b and completed successfully .
    261 records added, 261 records removed in the database
    1 page scraped
  • Manually ran revision 9e51b823 and completed successfully .
    261 records added in the database
    1 page scraped
  • Manually ran revision a96edf7f and completed successfully .
    nothing changed in the database
    1 page scraped
  • Manually ran revision 5fde0e4e and completed successfully .
    nothing changed in the database
    1 page scraped
  • Manually ran revision 5fde0e4e and completed successfully .
    nothing changed in the database
  • Manually ran revision 5fde0e4e and completed successfully .
    nothing changed in the database
    1 page scraped
  • Manually ran revision 5fde0e4e and completed successfully .
    nothing changed in the database
    1 page scraped
  • Manually ran revision 257fae9b and failed .
    nothing changed in the database
  • Created on morph.io

Scraper code

Python

bikemi-unofficial-api / scraper.py