a guest Jan 18th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import urllib.request
- my_url = 'someurl here'
- class MyOpener(urllib.request.FancyURLopener):
- version = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:220.127.116.11)
- Gecko/20071127 Firefox/18.104.22.168'
- myopener = MyOpener()
- page = myopener.open(dnb_url)
RAW Paste Data