Skip to content

Instantly share code, notes, and snippets.

@sergiolucero
Last active April 23, 2018 14:42
Show Gist options
  • Save sergiolucero/c830526bae3449173bde2dc92f5ed22d to your computer and use it in GitHub Desktop.
Save sergiolucero/c830526bae3449173bde2dc92f5ed22d to your computer and use it in GitHub Desktop.
pybikes demo
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