All Projects → YieldNull → freeproxy

YieldNull / freeproxy

Licence: MIT license
Get http proxies from some free proxy sites. (爬取免费HTTP代理)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to freeproxy

proxy-list
A curated list of free public proxy servers
Stars: ✭ 70 (+288.89%)
Mutual labels:  http-proxy, proxies
ProxyChecker
An easy to use open-source, multithreaded Proxy Checker. Allows you to quickly check HTTP and SOCKS proxies in a user friendly GUI, for Windows, Mac OS, Linux.
Stars: ✭ 113 (+527.78%)
Mutual labels:  http-proxy, proxies
Smartproxy
HTTP(S) Rotating Residential proxies - Code examples & General information
Stars: ✭ 205 (+1038.89%)
Mutual labels:  http-proxy, proxies
mps
MPS is a high-performance HTTP(S) proxy library that supports forward proxies, reverse proxies, man-in-the-middle proxies, tunnel proxies, Websocket proxies. MPS 是一个高性能HTTP(s)中间代理库,它支持正向代理、反向代理、中间人代理、隧道代理、Websocket代理
Stars: ✭ 64 (+255.56%)
Mutual labels:  http-proxy, proxies
Proxybroker
Proxy [Finder | Checker | Server]. HTTP(S) & SOCKS 🎭
Stars: ✭ 2,767 (+15272.22%)
Mutual labels:  http-proxy, proxies
C-Sharp-Proxy-Server
A proxy server built with c# can be both normal and MITM Proxy
Stars: ✭ 86 (+377.78%)
Mutual labels:  http-proxy
httpproxy
一个轻量级HTTP代理,支持shadowsocks服务,方便命令行、开发环境使用。
Stars: ✭ 90 (+400%)
Mutual labels:  http-proxy
node-proxy
High performance HTTP and reverse proxy server based on Node.js. 基于 Node.js 的高性能 HTTP 及反向代理服务器,类似nginx。
Stars: ✭ 71 (+294.44%)
Mutual labels:  http-proxy
Fasttunnel
NAT 内网穿透 远程内网计算机 域名访问内网站点 反向代理内网服务 花生壳 端口转发 http代理 微信 小程序 expose a local server behind a NAT or firewall to the internet like ngrok and frp. NAT ssh proxy tunnel reverse-proxy
Stars: ✭ 248 (+1277.78%)
Mutual labels:  http-proxy
ipChecker
Check if a IP is from tor or is a malicious proxy
Stars: ✭ 50 (+177.78%)
Mutual labels:  proxies
proxychanger
Go tool to change system and applications proxy
Stars: ✭ 15 (-16.67%)
Mutual labels:  proxies
ip2proxy-python
Python library for IP2Proxy database lookup. It can be used to find the IP addresses which are used as VPN anonymizer, open proxies, web proxies and Tor exits.
Stars: ✭ 19 (+5.56%)
Mutual labels:  proxies
proxybuilder
www.proxybuilder.org
Stars: ✭ 19 (+5.56%)
Mutual labels:  proxies
echoIP
显示客户端IP的详细信息
Stars: ✭ 63 (+250%)
Mutual labels:  http-proxy
web-proxy-script
Minimalist web proxy script
Stars: ✭ 55 (+205.56%)
Mutual labels:  http-proxy
Mallory
HTTP/HTTPS proxy over SSH
Stars: ✭ 251 (+1294.44%)
Mutual labels:  http-proxy
revp
Reverse HTTP proxy that works on Linux, Windows, and macOS. Made with C++ and Boost.
Stars: ✭ 80 (+344.44%)
Mutual labels:  http-proxy
ip2proxy-java
IP2Proxy Java Component.It can be used to find the IP addresses which are used as VPN anonymizer, open proxies, web proxies and Tor exits.
Stars: ✭ 16 (-11.11%)
Mutual labels:  proxies
YANG
🔥 The most efficient, open-source, and unlimited discord nitro generator & checker. 🚀
Stars: ✭ 215 (+1094.44%)
Mutual labels:  proxies
devproxy
A local development http proxy with hosts spoofing written in Go
Stars: ✭ 35 (+94.44%)
Mutual labels:  http-proxy

freeproxy

Get http proxies from some free proxy sites.

Site Accessibility
pachong.org China Only
cn-proxy.com Exclude China
txt.proxyspy.net Exclude China
free-proxy-list Exclude China
www.gatherproxy.com Exclude China
www.hide-my-ip.com Exclude China
www.getproxy.jp Exclude China
Account Required
www.xicidaili.com World Wide
www.cybersyndrome.net World Wide

Installing

$ pip install freeproxy

Requirements

Usage

Collect proxies

Run freeproxy from Terminal:

usage: freeproxy [-h] [-l] [-t] URL

Get http proxies from some free proxy sites

positional arguments:
  URL         The url for testing proxies. Like "https://www.google.com"

optional arguments:
  -h, --help  show this help message and exit
  -l          Logging debug messages to a file
  -t          Test availability of proxies stored in db

Fetch latest proxies from above sites and test them using URL.

$ freeproxy "https://www.google.com"

Testing results are stored in ~/.freeproxy/proxy.db (sqlite). Below is the peewee model:

class Proxy(Model):
    """
    Database Model
    """
    proxy = CharField(primary_key=True)  # "ip:port"
    check_time = DateTimeField(null=True)  # time of testing
    response_time = FloatField(null=True)  # response time(seconds)
    status_code = IntegerField(null=True)  # status code

If the testing URL was unreachable:

  • status_code would be None
  • response_time would be None

Test proxies

You can use the default testing method(Test all the proxies stored in database) or define your own strategy.

freeproxy -t URL uses the default one.

Read proxies

The default method freeproxy.read_proxies() reads all the proxies from database whose status_code is 200.

You can implement your own one.

Customize

See peewee doc for querying, or write your own SQL.

from freeproxy import from_pachong_org, from_xici_daili, from_cyber_syndrome
from freeproxy import Proxy, test_proxies, init_db


def your_fetching():
    proxies = from_pachong_org() + from_xici_daili() + from_cyber_syndrome()
    test_proxies(proxies, timeout=8, single_url='http://www.baidu.com')


def your_reading():
    query = Proxy.select().where(~(Proxy.status_code >> None))
    return [p.proxy for p in query]


def your_testing():
    test_proxies(your_reading(), single_url="http://www.baidu.com")


if __name__ == '__main__':
    init_db()  # If you have never successfully run `freeproxy` on Terminal
    your_fetching()
    your_testing()

ScreenShot

screenshot.png

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].