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
Copy file name to clipboardExpand all lines: README.md
+33-2Lines changed: 33 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# ProxyProviders
2
-
Unified python interface for proxy provider APIs, supports BrightData, WebShare, and more.
2
+
3
+
The Unified Python Proxy API with support for BrightData, WebShare, and more.
3
4
4
5
[](https://www.linkedin.com/in/davidteather/)[](https://github.com/sponsors/davidteather)[](https://github.com/davidteather/proxyproviders/releases)[](https://github.com/davidteather/proxyproviders/blob/main/LICENSE)[](https://pypi.org/project/proxyproviders/)[](https://discord.gg/yyPhbfma6f)
5
6
@@ -91,7 +92,7 @@ ws.list_proxies() # calls API since it's more than 3s later
91
92
Since all proxy providers implement the same interface, we can make a function that allows us to easily swap out and utilize different providers. This is the main appeal of having a unified interface. It allows other modules to be provider agnostic, like my [TikTokAPI](https://github.com/davidteather/TikTok-Api) package.
92
93
93
94
```py
94
-
from proxyproviders import Webshare, ProxyProvider, ProxyConfig
95
+
from proxyproviders import Webshare, BrightData, ProxyProvider, ProxyConfig
95
96
96
97
defsome_function(provider: ProxyProvider):
97
98
proxies = provider.list_proxies()
@@ -104,6 +105,36 @@ some_function(webshare)
104
105
some_function(brightdata)
105
106
```
106
107
108
+
Here's a more meaningful example that takes the `Proxy` class and uses it to create a python requests http proxy.
109
+
110
+
```py
111
+
from proxyproviders import Webshare, BrightData, ProxyProvider
Here's a skeleton of how you can make your very own `ProxyProvider` class. You'll need to implemenet all the required functions of the `ProxyProvider` which may be more than what's here at the time of writing.
0 commit comments