Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import urllib
- import bs4
- url = "http://www.whatsmyip.de/"
- proxylist = {
- "http://": "http://50.30.37.36:1935",
- "https://": "109.71.162.112:1935"
- }
- req = requests.get(url, proxies=proxylist)
- res = req.text
- soup = bs4.BeautifulSoup(res, "html.parser")
- print(soup.h3.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement