Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #For temp By SachaDee
- #PART I
- from bs4 import BeautifulSoup
- import urllib2
- lien = 'http://samair.ru/proxy/proxy-'
- for x in range(1, 31):
- numb = "%02d" % (x,)
- url = lien+str(numb)+'.htm'
- response = urllib2.urlopen(url)
- pagesource = response.read()
- soup = BeautifulSoup(pagesource)
- res = soup.find("div", {"id": "ipportonly"})
- print(res.a['href'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement