[英]discord making me verify email when certain API requests are made
Is there any way to get around this problem?有什么办法可以解决这个问题吗? My code looks like this:
我的代码如下所示:
import requests
token = "not gonna leak my token like I did last time lmao"
guild_id = "798596724649099305"
headers = {"Authorization": token,"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36", "Content-Type": "application/json", }
base_url = "https://discord.com/api/v8"
members_url = base_url + "/guilds/" + guild_id + "/members"
response = requests.get(members_url, headers=headers)
print(response)
Is there any way to get around this.有什么办法可以解决这个问题。 I am aware this is most likely a security measure by discord. When I run this code I get a 403 response code.
我知道这很可能是 discord 采取的一项安全措施。当我运行这段代码时,我得到了 403 响应代码。 Then if I look in the discord app I get an orange pop up asking me to verify my email where I have to complete a captcha.
然后,如果我查看 discord 应用程序,我会看到一个橙色弹出窗口,要求我验证我的 email,我必须在其中完成验证码。 Am I missing something here?
我在这里错过了什么吗?
Has to do with TLS mate.与 TLS 伙伴有关。 Discord uses Cloudflare.
Discord 使用 Cloudflare。 Cloudflare has some basic TLS fingerprinting, you can use a cloudflare solver like:
Cloudflare 有一些基本的 TLS 指纹识别,您可以使用 cloudflare 求解器,例如:
Or make/fork a TLS client to get around it.或者制作/分叉一个 TLS 客户端来绕过它。 Golang has some good TLS clients, I don't think there are any good, open source, python TLS clients.
Golang 有一些很好的 TLS 客户端,我认为没有任何好的开源 python TLS 客户端。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.