Skip to main content

This package is to get free proxy ips and port number for scraping and for testing on proxy.

Project description

Free Proxy List

This library is for testing purpose while scraping.

Installation

pip install free-proxy-list

Usage

    from proxy_list import ProxyList
    
    proxy_list = ProxyList()

Get all Proxies?

Request

Call get_all_proxies() to all the proxies in list form with its ports.

proxy_list.get_all_proxies()

Response

The response would be in form of multiple list of IP and Port.

    [('0.0.0.0','8080'),('0.0.0.0','9090'), and so on]

Get Random Proxy?

Request

Call get_random_proxy() to get a single proxy to use directly in code.

proxy_list.get_random_proxy()

Response

The response would be in form of dictionary of IP and Port.

{'https': '0:0:0.0:8080'}

How to use in requests?

Official documentation of requests. Requests

from proxy_list import ProxyList

proxies = ProxyList()
r = requests.get(url, proxies=proxies.get_random_proxy())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

free_proxy_list-0.0.3-py3-none-any.whl (2.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page