Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib3
- def proxies():
- html = ""
- http = urllib3.PoolManager().request('GET', 'https://www.us-proxy.org/')
- ips = []
- if http.status:
- html = http.data
- tabela_ips = html[html.find("<tbody>"):html.find("</tbody>")].split()
- for l in tabela_ips:
- data = l[l.find('<td>')+4:l.find('</td>')]
- if not data.isalnum():
- ips.append(data)
- return filter(None, ips)
Advertisement
Add Comment
Please, Sign In to add comment