Last active
April 23, 2018 14:42
-
-
Save sergiolucero/c830526bae3449173bde2dc92f5ed22d to your computer and use it in GitHub Desktop.
pybikes demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pybikes #pip install git+https://github.com/eskerda/pybikes.git | |
| blc = pybikes.get('bicilascondes') # system added to Citybikes by yours truly! | |
| blc.update() | |
| print len(blc.stations) # usually, 89 | |
| print blc.stations[0] | |
| ''' | |
| --- u'001 VITACURA / SAN PATRICIO' --- | |
| bikes: 4 | |
| free: 15 | |
| latlng: -33.41138735,-70.60239197 | |
| extra: {'status': u'OPN', 'districtCode': u'LCN', 'uid': 1, | |
| 'NearbyStationList': [2, 5], 'address': None} | |
| ''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment