Skip to main content

My first package to scrap free proxies from open resources

Project description

This module provide asynchronously scraping a bunch of http, https, socks4, socks5 proxies from websites such as:

  1. free-proxy-list.net
  2. geonode.com
  3. hidemy.name

Just now proxy-master scraped 23265 proxies from websites above. Count of unique by ip:port is 18383, but some servers support different protocols.

I add more websites to scrap from time to time, BUT looking for help and advices from people with experience

Dependencies

python3.10 and higher. Pattern matching using in project

Will be installed automatically with pip

aiohttp bs4 lxml pycountry aiohttp_socks

Installation

pip install proxy-master

Usage

  1. This will create proxy_master.json in you home directory and return list of proxies.
import proxy_master as pm
proxies = pm.get_proxies(
    protocol='http',
    do_prints=True
)

Then you can test proxies:

working_proxies = pm.test_proxies(
    proxies,
    proxy_protocol: 'http',
    website_protocol: 'http'
)

Features

  • Scrap different type of proxies include https, socks4, socks5
  • Recursively scraping. Use already collected proxies to scrap another website
  • test_public_ip(...) socks4, socks5 using aiohttp-proxy

In plans

Project details


Download files

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

Source Distribution

proxy_master-2.0.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

proxy_master-2.0.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file proxy_master-2.0.1.tar.gz.

File metadata

  • Download URL: proxy_master-2.0.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for proxy_master-2.0.1.tar.gz
Algorithm Hash digest
SHA256 bc5eb789d0e1496b28f4adc6265cd5ec3a9b94c719b93ee1b9c129b8f1895f8d
MD5 1428d155c66f5f4c42dcd114bf779eb2
BLAKE2b-256 b90b7691d9467a63db7bdecfcfc7a9cfb02cd581bcdaf6f4b02f0bda4be25664

See more details on using hashes here.

File details

Details for the file proxy_master-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: proxy_master-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for proxy_master-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9e455848998ac9ffb1f758ba36454cce6150b4f78509ac397f33d90b45356959
MD5 102cb5235575b95ced2fc401aeaa5e6a
BLAKE2b-256 40097481e898908911c0191fb53d46450ddb2f0cf37ab5e5ca09a8e3aeaabcd0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page