Closed GoogleCodeExporter closed 8 years ago
Your browser is being smart and url encoding what you type in the address bar.
Python assumes you know how to create a valid url and will happily let you make
bad requests. This will fix your code:
import urllib2
from urllib import urlencode
temp = urllib2.urlopen('http://otter.topsy.com/search.json?' +
urlencode(dict(q='"Netflix customers see red after price hike"', window='h3')))
Original comment by jason%to...@gtempaccount.com
on 19 Jul 2011 at 1:41
Original issue reported on code.google.com by
roja.ban...@gmail.com
on 19 Jul 2011 at 12:28