Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Python3WebSpider/ProxyPool
/ functions
Functions
82 in github.com/Python3WebSpider/ProxyPool
⨍
Functions
82
◇
Types & classes
30
↳
Endpoints
4
↓ 31 callers
Method
string
to string :return: <host>:<port>
proxypool/schemas/proxy.py:19
↓ 19 callers
Method
crawl
(self)
proxypool/crawlers/public/zhandaye.py:23
↓ 5 callers
Method
all
get all proxies :return: list of proxies
proxypool/storages/redis.py:136
↓ 5 callers
Function
convert_proxy_or_proxies
convert list of str to valid proxies or proxy :param data: :return:
proxypool/utils/proxy.py:41
↓ 4 callers
Method
add
add proxy and set it to init score :param proxy: proxy, ip:port, like 8.8.8.8:88 :param score: int score :return: res
proxypool/storages/redis.py:37
↓ 4 callers
Method
count
get count of proxies :return: count, int
proxypool/storages/redis.py:129
↓ 4 callers
Method
decrease
decrease score of proxy, if small than PROXY_SCORE_MIN, delete it :param proxy: proxy :return: new score
proxypool/storages/redis.py:94
↓ 4 callers
Function
extract_auth_proxy
extract host and port from a proxy with authentication
proxypool/utils/proxy.py:74
↓ 4 callers
Method
fetch
(self, url, **kwargs)
proxypool/crawlers/base.py:13
↓ 4 callers
Function
is_auth_proxy
(data: str)
proxypool/utils/proxy.py:70
↓ 3 callers
Function
filter_proxies_by_area
filter proxies by country iso code (e.g. 'CN', 'US'), case-insensitive; proxies whose country cannot be resolved are excluded :param prox
proxypool/processors/server.py:63
↓ 3 callers
Function
get_conn
get redis client object :return:
proxypool/processors/server.py:41
↓ 3 callers
Function
get_country_iso
look up the ISO country code (e.g. 'CN', 'US') for an ip address :param ip: ip address string :return: uppercase iso code, or None if unk
proxypool/utils/geo.py:15
↓ 3 callers
Function
get_request_key
read the `key` query parameter and validate its format; reject unexpected characters to avoid redis key probing/injection :return: valida
proxypool/processors/server.py:51
↓ 3 callers
Function
is_ip_valid
check this string is within ip format
proxypool/utils/proxy.py:19
↓ 3 callers
Function
is_valid_proxy
check this string is within proxy format
proxypool/utils/proxy.py:4
↓ 3 callers
Method
random
get random proxy firstly try to get proxy with max score if not exists, try to get proxy by rank if not exists, raise
proxypool/storages/redis.py:52
↓ 3 callers
Method
randoms
get a batch of random proxies firstly try to get proxies with max score, if not enough, get proxies by rank (score from high
proxypool/storages/redis.py:73
↓ 3 callers
Method
run
(self)
proxypool/scheduler.py:97
↓ 3 callers
Method
run
test main method :return:
proxypool/processors/tester.py:134
↓ 2 callers
Method
exists
if proxy exists :param proxy: proxy :return: if exists, bool
proxypool/storages/redis.py:110
↓ 2 callers
Function
is_port_valid
(port)
proxypool/utils/proxy.py:37
↓ 2 callers
Method
max
set proxy to max score :param proxy: proxy :return: new score
proxypool/storages/redis.py:118
↓ 2 callers
Method
process
used for parse html
proxypool/crawlers/base.py:26
↓ 2 callers
Method
run
(self)
examples/usage2.py:30
↓ 2 callers
Method
run
run crawlers to get proxy :return:
proxypool/processors/getter.py:30
↓ 2 callers
Method
test
test single proxy :param proxy: Proxy object :param session: shared aiohttp session :return:
proxypool/processors/tester.py:39
↓ 1 callers
Method
__init__
(self, proxyip)
examples/usage2.py:26
↓ 1 callers
Method
__str__
to string, for print :return:
proxypool/schemas/proxy.py:12
↓ 1 callers
Function
_test
()
proxypool/processors/tester.py:154
↓ 1 callers
Method
batch
get batch of proxies :param cursor: scan cursor :param count: scan count :return: list of proxies
proxypool/storages/redis.py:143
↓ 1 callers
Method
cookies
(self)
proxypool/testers/base.py:15
↓ 1 callers
Function
crawl
use proxy to crawl page :param url: page url :param proxy: proxy, such as 8.8.8.8:8888 :return: html
examples/usage.py:16
↓ 1 callers
Method
crawl
crawl main method
proxypool/crawlers/base.py:34
↓ 1 callers
Method
crawl
override crawl main method add headers
proxypool/crawlers/public/geonodedaili.py:34
↓ 1 callers
Method
crawl_catalog
(self)
proxypool/crawlers/public/zhandaye.py:27
↓ 1 callers
Method
encode
(input_str)
proxypool/crawlers/public/uqidata.py:16
↓ 1 callers
Function
getChinaIP
(ip='127.0.0.1')
examples/usage2.py:16
↓ 1 callers
Function
get_random_proxy
get random proxy from proxypool :return: proxy
examples/usage.py:8
↓ 1 callers
Method
headers
(self)
proxypool/testers/base.py:12
↓ 1 callers
Method
is_full
if proxypool if full return: bool
proxypool/processors/getter.py:22
↓ 1 callers
Function
main
main method, entry point :return: none
examples/usage.py:27
↓ 1 callers
Method
parse
(self, html, url, proxy, expr='{"code":0')
proxypool/testers/base.py:18
↓ 1 callers
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/yqie.py:16
↓ 1 callers
Method
parse_catalog
parse html file to get proxies :return:
proxypool/crawlers/public/zhandaye.py:33
↓ 1 callers
Method
run_tests
test all proxies in batches, reusing a single aiohttp session :return:
proxypool/processors/tester.py:113
Method
__init__
(self, fetchSecond)
examples/usage2.py:61
Method
__init__
init redis client :param host: redis host :param port: redis port :param password: redis password :param conn
proxypool/storages/redis.py:21
Method
__init__
init redis
proxypool/processors/tester.py:31
Method
__init__
init db and crawlers
proxypool/processors/getter.py:12
Method
__init__
init urls
proxypool/crawlers/public/xiaoshudaili.py:16
Method
__str__
proxypool is used out :return:
proxypool/exceptions/empty.py:2
Function
auth_required
(func)
proxypool/processors/server.py:22
Function
decorator
(*args, **kwargs)
proxypool/processors/server.py:24
Function
get_count
get the count of proxies :return: count, int
proxypool/processors/server.py:156
Function
get_proxy
get a random proxy, can query the specific sub-pool according the (redis) key if PROXY_RAND_KEY_DEGRADED is set to True, will get a universal
proxypool/processors/server.py:89
Function
get_proxy_all
get all proxies, optionally filtered by `area` (country iso code, e.g. CN) :return: all proxies
proxypool/processors/server.py:135
Function
index
get home page, you can define your own templates :return:
proxypool/processors/server.py:79
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/goubanjia.py:15
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/ip3366.py:16
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/ihuan.py:17
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/uqidata.py:24
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/fatezero.py:14
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/xiaoshudaili.py:37
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/daili66.py:16
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/docip.py:18
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/data5u.py:15
Method
parse
(self, html)
proxypool/crawlers/public/zhandaye.py:44
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/geonodedaili.py:18
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/jiangxianli.py:18
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/kuaidaili.py:17
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/taiyangdaili.py:15
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/xiladaili.py:15
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/ip89.py:15
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/iphai.py:15
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/xicidaili.py:16
Method
parse
parse html file to get proxies :return:
proxypool/crawlers/public/seofangfa.py:18
Method
run
(self)
examples/usage2.py:65
Method
run_getter
run getter
proxypool/scheduler.py:38
Method
run_server
run server for api
proxypool/scheduler.py:53
Function
run_tester
()
proxypool/processors/tester.py:149
Method
run_tester
run tester
proxypool/scheduler.py:23