Using QuickProxy
For faster use cases where caching is not required swiftshadow.QuickProxy
function is the best choice.
This function is a faster alternative to Proxy
class.
No caching is done.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
countries |
list
|
ISO 3166-2 Two letter country codes to filter proxies. |
[]
|
protocol |
str
|
HTTP/HTTPS protocol to filter proxies. |
'http'
|
Returns:
Name | Type | Description |
---|---|---|
proxyObject |
dict
|
A working proxy object. |
Source code in swiftshadow/__init__.py
You can use filters just like in swiftshadow.Proxy
class.