Advertisement
Batchonline2

SachaDee's Past

Dec 28th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #For temp By SachaDee
  2. #PART I
  3.  
  4. from bs4 import BeautifulSoup
  5. import urllib2
  6. lien = 'http://samair.ru/proxy/proxy-'
  7.  
  8. for x in range(1, 31):
  9. numb = "%02d" % (x,)
  10. url = lien+str(numb)+'.htm'
  11. response = urllib2.urlopen(url)
  12. pagesource = response.read()
  13. soup = BeautifulSoup(pagesource)
  14. res = soup.find("div", {"id": "ipportonly"})
  15. print(res.a['href'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement