unused snippet

This commit is contained in:
2025-08-22 09:43:22 +02:00
parent da55030498
commit e0cda85d20

10
snippets/proxy.py Normal file
View File

@@ -0,0 +1,10 @@
import requests
def get(url, proxy=True):
if proxy:
tmp = "socks5://localhost:1080"
kwargs = dict(proxies=dict(http=tmp, https=tmp))
else:
kwargs = {}
return requests.get(url, **kwargs)