Skip to main content

Free-proxy

Get free working proxy from https://www.sslproxies.org/ and use it in your script

FreeProxy class scrapes proxies from https://www.sslproxies.org/ and checkes if proxy is working. There is posibility to
filter proxies by country and acceptable timeout. You can also randomize list of proxies from where script would get
first working proxy.

You can use it in sending request through custom proxy, with selenium or wherever you want.

Returns proxy as string:

'113.160.218.14:8888'  

Requirements

  • Python3

  • Request library

  • Lxml library

Usage with examples

Parameter Type Example Default value
country_id str 'US' None
timeout float > 0 0.1 0.5
rand bool True False
proxy = FreeProxy().get()  
  • country_id parameter
    Get first working proxy from specified country. If there is no valid proxy from specified country check all countries
proxy = FreeProxy(country_id='US').get()  
  • timeout parameter
    Timeout is parameter for checking if proxy is valid. If test site doesn't respond in specified time
    script marks this proxy as invalid. Default timeout=0.5. You can change it by defining
    specified timeout eg. timeout=1.
proxy = FreeProxt(timeut=1).get()  
  • rand parameter
proxy = FreeProxy(rand=True).get()  

Shuffles proxy list from https://www.sslproxies.org/. Default rand=False and searches for working proxy from newest to oldest (as they are listed in https://www.sslproxies.org/).

You can combine parameters:

proxy = FreeProxy(country_id='US', timeout=0.3, rand=True).get()  

If there is no working proxy script returns None

License

MIT

Free Software!

Download files

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

Source Distribution

free_proxy-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

free_proxy-1.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file free_proxy-1.0.0.tar.gz.

File metadata

  • Download URL: free_proxy-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

File hashes

Hashes for free_proxy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 97e990e50633e1c552541f66b2eb78046707055fbda439866ea7e8ea37aefcb5
MD5 3eb942d1458b4bb89efd706e560f5810
BLAKE2b-256 5e8f16b83594ccd7cbe102ec1804e0f68838064684b45c02a661b2dc8392b115

See more details on using hashes here.

File details

Details for the file free_proxy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: free_proxy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

File hashes

Hashes for free_proxy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3e8152af1533ba632eaa965ede071107fcfba17ca19d98f3064b1f47dd9b400
MD5 7184070a086d92c828984d47970196f4
BLAKE2b-256 2efad01b586a6cca1ae2c75657dac7a2e3b43767182c4d1a2bbcbe7f641acd8a

See more details on using hashes here.

Release history Release notifications | RSS feed

1.2.3

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.3

1 file

1.1.2

1 file

1.1.1

1 file

1.1.0

1 file

1.0.6

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

1 file

1.0.2

2 files

1.0.1

2 files

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page