Skip to content

Instantly share code, notes, and snippets.

@echain
Created May 17, 2010 07:20
Show Gist options
  • Save echain/403486 to your computer and use it in GitHub Desktop.
Save echain/403486 to your computer and use it in GitHub Desktop.
import urllib2
url = 'http://208.67.219.230/search?q=drken&num=100'
agent = 'Mozilla/5.0'
opener = urllib2.build_opener()
opener.addheaders = [('User-agent', agent)]
urllib2.install_opener(opener)
data = urllib2.urlopen(url).read()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment