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

proxy-grabber

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxy-grabber

Simple http proxy grabber and checker

  • 1.1.1
  • PyPI
  • Socket score

Maintainers
1

Proxy-Grabber

Simple http proxy grabber and checker

Installation

$ pip3 install proxy-grabber

Usage

from proxy_grabber import ProxyGrabber
grabber = ProxyGrabber()

# --- Grabbing proxies ---

# Parse proxy from different sources
# You can call generate_proxy_list() without arguments if you want to grab as more proxies as possible
grabber.grab_proxies(proxy_limit=100)

# --- Adding proxies ---
# Notice: you can add proxies without grabbing
# You can add some proxies from the file
grabber.load('./data/proxy.list')

# Or you can add proxy manually
grabber.add_proxies(['ip:port', 'ip:port', ...])

# --- Checking proxies ---

# [optional]
# You can specify proxy countries
grabber.set_countries(['US', 'RU', 'CA', ...])

grabber.check_proxies()

# --- Get results ---
grabber.get_proxy() # Random checked proxy
grabber.get_checked_proxies() # All checked proxies
grabber.save('./data/checked_proxies.list') # Save checked proxies to the file

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