You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 5, 2023. It is now read-only.
Getting proxies is handled by the `ProxyFetcher` class. There are several parameters you can pass on initialization to narrow down the proxies to a suitable type. From there you can just call `get_proxy` to receive a proxy in the form of `{ip-address}:{port-number}` or call `get_proxies(amount)` to receive a list of `amount` proxies. There is an internal blacklist to ensure that the same proxy IP and port combo will not be used more than once by any `ProxyFetcher`, unless `exclude_used` is `False`.
57
+
Getting proxies is handled by the `ProxyFetcher` class. There are several parameters you can pass on initialization to narrow down the proxies to a suitable type. From there you can just call `.get(amount=1)` to receive a list of `amount` proxies where each proxy is in the form of `"{ip}:{port}"`. There is an internal blacklist to ensure that the same proxy IP and port combo will not be used more than once by any `ProxyFetcher`, unless `exclude_used` is `False`.
58
58
59
59
### `ProxyFetcher` Parameters
60
60
@@ -80,13 +80,12 @@ Since the API doesn't check pretty much anything for correctness, we do our best
80
80
81
81
### `ProxyFetcher` Methods
82
82
83
-
Keeping it simple (stupid), so just `get_proxy()`, `get_proxies(amount)`, and `drain()`.
83
+
Keeping it simple (stupid), so just `.get(amount=1)` and `.drain()`.
84
84
85
85
|Method|Returns|
86
86
|:--|:--|
87
-
|`get_proxy()`|Single proxy as a string, format `{ip}:{port}`|
88
-
|`get_proxies(amount)`|List of `amount` proxies, same format as above|
89
-
|`drain()`|Returns any proxies remaining in the current list, useful if you are no longer getting proxies and want to save any left over|
87
+
|`.get(amount=1)`|List of `amount` proxies, where each proxy is a `str` in the form `"{ip}:{port}"`|
88
+
|`.drain()`|Returns any proxies remaining in the current list, useful if you are no longer getting proxies and want to save any left over|
0 commit comments