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:126.96.36.199)
- Gecko/20071127 Firefox/188.8.131.52'
- myopener = MyOpener()
- page = myopener.open(dnb_url)
RAW Paste Data