/proxy_scraper

A module to get any type of proxies in 1 click!

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Proxy_Scraper

Get any type of proxies easier !

version: 1.8

PyPi license PyPi download

Download using PyPI

You can download the module here.

Download using pip:

~$ python3 -m pip install proxy_scraper

Examples

from proxy_scraper import get_proxies
# Creates a lambda function to return 5 randomly proxies.
get_proxy = lambda t, d: __import__("random").choice(get_proxies(type=t, timeout=d, limit=5))
print(get_proxy("https", 10)

>>> 88.198.24.108:1080
from proxy_scraper import get_proxies
# Returns a list of checked proxies.
print(get_proxies(checked=True, type="http", number=2)

>>> ['104.255.170.91:51676', '88.198.24.108:1080']
from proxy_scraper import check_proxies_from_file
# Checks proxies from the specified path. If not found, it returns an empty list.
print(check_proxies_from_file("proxies.txt", timeout=100))

>>> ['217.149.135.21:5678', '54.38.163.25:5678', '185.216.163.133:1080', '185.161.245.1:1080', '179.49.117.166:5678']

Documentation

The module uses the ProxyScrape's API.