Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

free-proxy-list

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

free-proxy-list

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

  • 0.0.3
  • PyPI
  • Socket score

Maintainers
1

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())

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc