简体   繁体   English

discord 让我在提出某些 API 请求时验证 email

[英]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.

相关问题 制作不和谐机器人时出现 AttributeError - AttributeError when making a discord bot 有没有办法通过 email 或免费电话使用 Python 验证 Discord 帐户? - Is there a way to verify a Discord account by email or phone for free using Python? 为什么在请求 API 调用中使用 verify=True? - Why use verify=True in requests API call? etsy-api-oauth1 PUT 请求在使用 python 时返回无效签名,而不是来自 Postman - etsy-api-oauth1 PUT Requests return invalid signature when made from python, but not from Postman 使用discord.py进行API调用 - Making an API call with discord.py 我正在制作 discord 翻译机器人。 帮我 - I'm making a discord translator bot. Help me 让 discord 机器人在打字时踢某个成员(Python) - Making a discord bot kick a certain member on typing (Python) 制作不和谐的bot时发生Python语法错误 - Python Syntax Error when making discord bot 有没有办法让我禁用 discord.py 中某个角色的命令? - Is there a way for me to disable a command for a certain role in discord.py? Microsoft Graph API REQUESTS with Python:进行简单调用时出现“权限不足,无法完成操作”错误 - Microsoft Graph API REQUESTS with Python: "Insufficient privileges to complete the operation" error when making simple call
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM