daily pastebin goal
13%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import urllib.request
  2.  
  3. my_url = 'someurl here'
  4.  
  5. class MyOpener(urllib.request.FancyURLopener):
  6.     version = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.11)
  7. Gecko/20071127 Firefox/2.0.0.11'
  8.  
  9. myopener = MyOpener()
  10.  
  11. page = myopener.open(dnb_url)
  12. page.read()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top