Wabbit
Battle Royale Expert
LEVEL 1
400 XP
Coding A 3-in-1 Proxy Scraper (Tutorial)
In this tutorial, I'll be teaching you how to create a proxy scraper that scrapes 3 types of proxies with one click using Python 3.
1. The first step is to import the required libraries (in this case, Requests)
import requests
2. Make the GET requests to the ProxyScrape API using Requests
r = requests.get('https://api.proxyscrape.com?request=getproxies&proxytype=http')
r2 = requests.get('https://api.proxyscrape.com?request=getproxies&proxytype=socks4')
r3 = requests.get('https://api.proxyscrape.com?request=getproxies&proxytype=socks5')
3. Save the proxies
with open('./httpproxies.txt', 'w') as f:
f.write(r.text)
with open('./socks4proxies.txt', 'w') as f:
f.write(r2.text)
with open('./socks5proxies.txt', 'w') as f:
f.write(r3.text)
4. Done!
Leechers Will Be Reported!
Edited by Koder, 31 March 2020 - 10:00 PM.
In this tutorial, I'll be teaching you how to create a proxy scraper that scrapes 3 types of proxies with one click using Python 3.
1. The first step is to import the required libraries (in this case, Requests)
import requests
2. Make the GET requests to the ProxyScrape API using Requests
r = requests.get('https://api.proxyscrape.com?request=getproxies&proxytype=http')
r2 = requests.get('https://api.proxyscrape.com?request=getproxies&proxytype=socks4')
r3 = requests.get('https://api.proxyscrape.com?request=getproxies&proxytype=socks5')
3. Save the proxies
with open('./httpproxies.txt', 'w') as f:
f.write(r.text)
with open('./socks4proxies.txt', 'w') as f:
f.write(r2.text)
with open('./socks5proxies.txt', 'w') as f:
f.write(r3.text)
4. Done!
Leechers Will Be Reported!
Edited by Koder, 31 March 2020 - 10:00 PM.