Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib.request
- req = urllib.request.Request('http://httpbin.org/robots.txt')
- with urllib.request.urlopen(req) as response:
- print("This is the page content")
- page = response.read()
- print(page)
- proxies = urllib.request.getproxies()
- print("Query OS for Proxy info")
- print(proxies)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement