Try
f = opener.open(req)
simplejson.load(f)
without running f.read() first. When you run f.read(), the filehandle’s contents are slurped so there is nothing left when your call simplejson.load(f)
Try
f = opener.open(req)
simplejson.load(f)
without running f.read() first. When you run f.read(), the filehandle’s contents are slurped so there is nothing left when your call simplejson.load(f)