Reading *.json from URL - json.loads() versus urllib.urlopen.readlines()

Bryan Britten britten.bryan at gmail.com
Mon May 27 17:29:38 EDT 2013


Try to not sigh audibly as I ask what I'm sure are two asinine questions. 

1) How is this approach different from twtrDict = [json.loads(line) for line in urllib.urlopen(urlStr)]?

2) How do I tell how many JSON objects are on each line?






More information about the Python-list mailing list