Re: [Tutor] Using json to filter out results from a dictionary

2012-12-13 Thread Steven D'Aprano
On 14/12/12 09:39, Jasmine Gao wrote: Hello, I've just started programming in python and haven't had much experience with json. This is not really a JSON problem. JSON just handles converting data in a dict to a string and back. As you say: I'm stuck in terms of how you loop through the dic

[Tutor] Using json to filter out results from a dictionary

2012-12-13 Thread Jasmine Gao
Hello, I've just started programming in python and haven't had much experience with json. I've written this simple script that makes a request to the Bitly API, specifically the /v3/realtime/bursting_phrasesendpoint, and prints the

Re: [Tutor] reading web page with BeautifulSoup

2012-12-13 Thread Alan Gauld
On 13/12/12 01:47, Ed Owens wrote: >>> from urllib2 import urlopen >>> page = urlopen('w1.weather.gov/obhistory/KDCA.html') Traceback (most recent call last): ValueError: unknown url type: w1.weather.gov/obhistory/KDCA.html copy the url from the error message into my browser and get the page