Thanks Buddy
Guild Founder
LEVEL 1
300 XP
Proxy Scraper
Easy to scrape proxies within 1 click and it also saves them in txt.
Requirements:
1) Python 3
Downloads :
Source Code:
Code:
HIT LIKE and Happy Cracking <3
Easy to scrape proxies within 1 click and it also saves them in txt.
Requirements:
1) Python 3
Downloads :
Loading…
s000.tinyupload.com
Code:
Code:
import pandas as pd
import re
import urllib.request
print("Which PROXIES do you want?")
print("1. Http/Https \n2. Sock4 \n3. Sock5")
choice = input("Type 1,2 or 3>>>")
url ="https://proxy-daily.com"
headers = {}
headers['User-Agent'] = "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.27 Safari/537.17"
req = urllib.request.Request(url, headers = headers)
resp = urllib.request.urlopen(req)
respData = resp.read()
respData
if choice=="1":
print("Scraping proxies from proxy-daily.com")
proxies_df1 = re.findall(r'Free Http/Https Proxy List:
(.*?)
Free Socks4 Proxy List:',str(respData))
proxies_df = pd.DataFrame(re.findall(r'\\\\n(.*?)\\\\n',str(proxies_df1)))
print("Done")
proxies_df.to_csv('http.txt', header=False, index=False, mode='w')
if choice=="2":
print("Scraping proxies from proxy-daily.com")
proxies_df1 = re.findall(r'Free Socks4 Proxy List:
(.*?)
Free Socks5 Proxy List:',str(respData))
proxies_df = pd.DataFrame(re.findall(r'\\\\n(.*?)\\\\n',str(proxies_df1)))
print("Done")
proxies_df.to_csv('socks4.txt', header=False, index=False, mode='w')
if choice =="3":
print("Scraping proxies from proxy-daily.com")
proxies_df1 = re.findall(r'Free Socks5 Proxy List:
(.*?)
',str(respData))
proxies_df = pd.DataFrame(re.findall(r'\\\\n(.*?)\\\\n',str(proxies_df1)))
print("Done")
proxies_df.to_csv('socks5.txt', header=False, index=False, mode='w')