summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fa6fa28)
using simplejson if json not available
+try:
+ import json
+except ImportError:
+ import simplejson as json
import shutil
import defaults
import realtime
import shutil
import defaults
import realtime
# open url for 90 min timeslot / get departure for next 90 min
retry = 0
# open url for 90 min timeslot / get departure for next 90 min
retry = 0
+ tries = 2 # try a second time before return empty list
while retry < tries:
bs = BeautifulSoup(urlopen(url + "&departureSizeTimeSlot=90"))
try:
while retry < tries:
bs = BeautifulSoup(urlopen(url + "&departureSizeTimeSlot=90"))
try: