Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Urlib2 Proxy Connection With Python And A Screen Scrape Flourish

DZone's Guide to

Urlib2 Proxy Connection With Python And A Screen Scrape Flourish

·
Free Resource
// description of your code here


import urllib2
req = urllib2.Request(url = 'http://lion.chadwyck.co.uk')
req.set_proxy('march.private.chadwyck.co.uk:3128', 'http')
r = urllib2.urlopen(req)
data = r.read()
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}