Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import requests
  2. import urllib
  3. import bs4
  4. url = "http://www.whatsmyip.de/"
  5.  
  6. proxylist = {
  7. "http://": "http://50.30.37.36:1935",
  8. "https://": "109.71.162.112:1935"
  9. }
  10. req = requests.get(url, proxies=proxylist)
  11. res = req.text
  12.  
  13. soup = bs4.BeautifulSoup(res, "html.parser")
  14. print(soup.h3.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement