• We just launched and are currently in beta. Join us as we build and grow the community.

[HQ Tutorial] How To CODE A 3-in-1 Proxy Scraper in Python 3 (HTTPS/SOCKS4/SOCKS5)

Wabbit

Battle Royale Expert
W Rep
0
0
0
Rep
0
W Vouches
0
0
0
Vouches
0
Posts
56
Likes
63
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
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.
 

422,212

310,551

310,560

Top