All Projects → jundymek → free-proxy

jundymek / free-proxy

Licence: MIT license
Free proxy scraper written in python. It is pypi library - free to use.

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to free-proxy

bizbook-client
The repository of bizbook client project
Stars: ✭ 28 (-75.65%)
Mutual labels:  free
bitcoin-development-with-go
[Work in Progress] A little book on Bitcoin Development with Go (golang)
Stars: ✭ 19 (-83.48%)
Mutual labels:  free
classic-cv
🎓 FREE Classic CV / Resume HTML Template
Stars: ✭ 52 (-54.78%)
Mutual labels:  free
Youtube-Comment-Bot
A YouTube API Comment bot, better faster and free!
Stars: ✭ 58 (-49.57%)
Mutual labels:  free
FreeGen
Code source du premier générateur d'Europe de 2016 à 2021. Fermé en 2021 par Lukas et TRH pour raisons personelles.
Stars: ✭ 18 (-84.35%)
Mutual labels:  free
letsencrypt-fast
The fastest way to test/generate/renew Let's Encrypt SSL certificates!!! Requires root access and a live webserver to run the script at.
Stars: ✭ 25 (-78.26%)
Mutual labels:  free
Steam-Games-Idle
❤️ Node.js based script for steam game idling / hour boosting for chosen game without using computer resources. Built by @Refloow
Stars: ✭ 46 (-60%)
Mutual labels:  free
awesome-hosting
List of awesome hosting
Stars: ✭ 134 (+16.52%)
Mutual labels:  free
awesome-alternatives
A list of alternative websites/software to popular proprietary services.
Stars: ✭ 123 (+6.96%)
Mutual labels:  free
CoinHive
A nice friendly simple and easly customizable GUI for coinhives javascript miner to embed onto websites so users of your site can interact with features of the miner on every single page this javascript miner is to help those who have problems with advertisements/advertising/ads popups banners mobile redirects malvertising/malware etc and provid…
Stars: ✭ 58 (-49.57%)
Mutual labels:  free
pichichi
Simple one page responsive portfolio template
Stars: ✭ 54 (-53.04%)
Mutual labels:  free
gamesearch
A Simple Search Engine to help you find FREE Download Links to your Favourite Games
Stars: ✭ 30 (-73.91%)
Mutual labels:  free
node-google-translate-skidz
Simple Node.js library for talking to Google's Translate API for free.
Stars: ✭ 70 (-39.13%)
Mutual labels:  free
dhtml2pdf
Simple, free and very easy to use PHP API that allows you to see, download or get the binary of the PDF generated from the HTML of an URL.
Stars: ✭ 27 (-76.52%)
Mutual labels:  free
PyDDNS
Complete system to create your own server ddns
Stars: ✭ 57 (-50.43%)
Mutual labels:  free
free-pic
free-pic 一个第三方免费图床扩展包 free image-hosting
Stars: ✭ 22 (-80.87%)
Mutual labels:  free
mailserver
Join us, building a full OpenBSD mailserver! (work in progress)
Stars: ✭ 52 (-54.78%)
Mutual labels:  free
design-heaven
👼 Stunning open source design resources for designers and developers
Stars: ✭ 87 (-24.35%)
Mutual labels:  free
MEGA Manager
Cloud syncing manager for multiple MEGA cloud storage accounts with syncing, data gathering, compresssion and optimization capabilities.
Stars: ✭ 29 (-74.78%)
Mutual labels:  free
Valheim-Free-Game-Server-Setup-Using-Oracle-Cloud
Valheim Oracle Cloud Server Setup
Stars: ✭ 24 (-79.13%)
Mutual labels:  free

Free-proxy

Get free working proxy from https://www.sslproxies.org/, https://www.us-proxy.org/, https://free-proxy-list.net/uk-proxy.html and https://free-proxy-list.net and use it in your script

FreeProxy class scrapes proxies from https://www.sslproxies.org/, https://www.us-proxy.org/, https://free-proxy-list.net/uk-proxy.html and https://free-proxy-list.net and checks if proxy is working. There is possibility 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:

'http://113.160.218.14:8888'

Requirements

  • Python3
  • Request library
  • Lxml library

Installation

pip install free-proxy

asciicast

Usage with examples

First import Free Proxy that way:

from fp.fp import FreeProxy

Options

Parameter Type Example Default value
country_id list ['US', 'BR'] None
timeout float > 0 0.1 0.5
rand bool True False
anonym bool True False
elite bool True False
google bool,None False None
https bool True False
proxy = FreeProxy().get()
proxy = FreeProxy(country_id=['US', 'BR']).get()
proxy = FreeProxy(country_id=['US']).get()
proxy = FreeProxy(country_id=['GB']).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 = FreeProxy(timeout=1).get()
proxy = FreeProxy(rand=True).get()
  • anonym parameter Return only those proxies that are marked as anonymous. Defaults to anonym=False
proxy = FreeProxy(anonym=True).get()
  • elite parameter Return only those proxies that are marked as 'elite proxy'. Defaults to elite=False.
proxy = FreeProxy(elite=True).get()

Note that elite proxies are anonymous at the same time, thus anonym=True automatically when elite=True.

  • google parameter If True it returns only those proxies that are marked as google, if False - as no google. Defaults to google=None that returns all proxies.
proxy = FreeProxy(google=True).get()
  • https parameter If true it returns only those proxies that are marked as HTTPS. Defaults to https=False - i.e. HTTP proxy (for HTTP websites).

    Note that HTTPS proxy is for both HTTP and HTTPS websites.

proxy = FreeProxy(https=True).get()

You can combine parameters:

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

If there are no working proxies with provided parameters script raises FreeProxyException with There are no working proxies at this time. message.

CHANGELOG


[1.1.0] - 2022-11-12

[1.0.6] - 2022-01-23

  • Added google parameter
  • Added https parameter

[1.0.5] - 2022-01-07

  • Added elite parameter
  • Add exception class and raise exception instead of system exit
  • Change lxml version to 4.6.5

[1.0.4] - 2021-11-13

  • Fix proxy list default length

[1.0.3] - 2021-08-18

  • Change XPatch due to SSL proxies page update
  • Change lxml version

[1.0.2] - 2020-09-03

  • Added anonym parameter

[1.0.1] - 2020-03-19

  • Fix typos in readme
  • Fix urrlib3 exception urllib3.exceptions.ProxySchemeUnknown: Not supported proxy scheme None,
  • Fix imports

[1.0.0] - 2019-02-04

  • Initial release

License


MIT

Free Software!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].