简体   繁体   English

Python 连接到 Surfshark(VPN 服务器)

[英]Python connect to Surfshark (VPN server)

I want my python script to automatically send my python requests over Surfshark (VPN server).我希望我的 python 脚本通过 Surfshark(VPN 服务器)自动发送我的 python 请求。 That means not connecting the entire PC.这意味着不连接整个 PC。 I don't care about the encryption to the server.我不关心服务器的加密。 Thanks谢谢

I recommend to you use HTTP or SOCKS5 proxy servers.我建议您使用 HTTP 或 SOCKS5 代理服务器。 You Can find a lot of free proxy servers easily with a simple google search but they aren't stable at all.您可以通过简单的谷歌搜索轻松找到很多免费的代理服务器,但它们根本不稳定。 if you want stable proxy servers you can buy cheap proxy servers from here如果你想要稳定的代理服务器,你可以从这里购买便宜的代理服务器

they give you access to some proxy servers and you can use them like below with requests它们使您可以访问某些代理服务器,您可以像下面这样使用它们来requests

import requests

# http proxy
proxies = {
  'http': 'http://10.10.1.10:3128',
  'https': 'http://10.10.1.10:1080',
}

requests.get('http://example.org', proxies=proxies)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM