I am currently testing with different selfbots on Discord.py. I wanted to know if there was a way to remove the phone number off my account. I tried bot.remove_phone but that didnt work. I am completely new to python.
Self botting is against the Terms and Service of Discord.
Moreover, Discord doesn't give out features to further hurt their platform by their API. If Discord happens to detect this your account would be banned. Either way, remove_phone attribute is not included in the Official Discord documentation.
But for clarity, anything considered "user account automation" is disallowed, including custom clients and similar.
Here's Discord's reference:
https://support.discord.com/hc/en-us/articles/115002192352-Automated-user-accounts-self-bots-
I cant make an comment so I have to make an answer, but you could make an requests.delete() to discord, you need the token and its password.
You can find more info about how the request should look like by being logged in discord via chrome, then open dev tools with ctrl + i -> go to network and select XHR then you can try and delete phone number with a wrong password to get an idea how the request should look like
also probably should not use your main since you might do couple mistakes and lose your account
Related
THE PROBLEM:
In Discord, as you may know, there is an "About me" section.
This section is a description of a profile that you can write yourself.
Bots can have an "About me" section.
What I want to do is to edit this "About me" section automatically in discord.py;
For example, the "About me" section of the bot changes every hour.
WHAT I TRIED:
I searched for some answers for a long time but didn't find anything relevant.
I saw that you could modify the "about me" with the Developer portal, but it's not automated.
I saw that some people said "This will be able in discord.py V2" but didn't find it
It may be possible to resolve this problem with HTTP requests but it's only a supposition, I'm not very good at this topic.
CODE:
#bot.event
async def on_ready():
while 1:
await change_the_about_me_section(str(random.randint(0,1000))
time.sleep(3600)
# change_the_about_me_section isn't a real function
# I just wanted to show an exemple of what I wanted to do
There is an answer.
You can fully automate it with Python in a few lines.
With the requests library.
You just have to first include requests with:
import requests
Then, do a patch request
requests.patch(url="https://discord.com/api/v9/users/#me", headers= {"authorization": token}, json = {"bio": abio} )
# With token your token, and abio a string like "hello"
And... that's it :)
(Note: You can also do that with the color of the Account with accent_color instead of bio, and the banner with banner instead of bio)
I do not think you can change your about me using any code. It must be done through the developer portal. On the other hand, you can change its status through your code.
You can only do this as the application owner/a team member manually in the Developer Portal.
Automating this would count as automating your user account (eg. self-boting) wich is against Discords Terms of Service and can get your account banned.
The bot itself has no access to this endpoint.
You can’t change that via the api.
Bots don’t use the bio field.
And self bot is forbidden by the tos.
I'm quite a novice, so please excuse my ignorance.
I've created a developer account on my personal Twitter account and my end goal is to have another account occasionally tweet something. I'm using tweepy and have successfully managed to tweet something, albeit from my account.
Twitter developer accounts can get their API key and secret, as well as an Access key and secret. What I'm trying to figure out is how to get my bot account's keys to have it tweet instead of my account.
After reading countless pages online as well as the docs, there seems to be a way to get auth another user through three-legged auth and pin-based auth, which seems like the correct route to my goal.
However, I have no idea where to go from here. The three-legged auth page asks for various required fields, of which I have no idea what to fill with (Callback URLs and Website URL). Moreover, the docs describe the process as one that needs to be initiated by the dev account, and I have no idea how to initiate that process at all.
Any help or guidance on what to do? My tweepy script is fully finished and just needs to be hooked up to the Twitter API.
Thanks.
EDIT & SOLUTION (03/18/2021):
Thanks to the comment by Sim leading to the article, I was able to derive a python script using Tweepy to authorize the bot using pin-based auth, found here. I'd give the article a read regardless, but once it starts telling you to create .js and .json files, stop there and use my script. That's what worked for me.
Found a solution that worked for me, I think this is what you need. https://dev.to/stratospher/many-bot-accounts-using-1-twitter-developer-account-17ff
I using Python 3.8.2.
Is it possible to somehow implement in the code so that it goes to the desired # (bot or channel) itself? My further actions are not particularly important. I cannot find information anywhere on how to implement my idea.
Yes, if it was my bot, then I could just insert the TOKEN, but this is not my bot / channel
I have an idea to implement this using Selenium so that it clicks in the browser to the right moment, but maybe there is another way? Yes, this will be related to the Web version, since there are no ideas yet how to implement this in the desktop version.
I will describe the idea in more detail, immediately using the example of Selenium:
There is a code - it contains steps. One of the steps EITHER go to #, or search chats by element (of course, I have to be logged in in the browser)
But maybe there is a simpler way, without Selenium, to implement the step of the script going to the bot / channel page in the Telegram?
You can use telethon library that can allows you to programmatically interact with Telegram, like: start chat, write to anybody, get chat messages history and so on.
Here are simple example and full documentation about how to use it.
I'm making a page, with the concept that If someone reply's on a specific post, my page reply's automatic on them. So, I've made a Python-program and let it run 24/7. For me as page-administrator, app-administrator (Facebook app), it works perfect. But, when I react with an other account (normal user, no admin), then I my program returns TraceError 'from'. So, then the program can't find who has reacted...
I've got a small second question. When I go to the page with the other account, I can see the reactions my admin-account placed, but I can't see the auto-reactions my program wrote. So, with my admin account, I see a reaction, with my other account, I just see "show 1 reaction", but when I click on it, it disappears...
Someone who has an idea how I can fix it?
Thanks in advance!
I have been Googling for sometime but I guess I am using the wrong set of keywords. Does anyone know this URI that lets me request permission from Facebook to let me crawl their network? Last time I was using Python to do this, someone suggested that I look at it but I couldn't find that post either.
Amazingly enough, that's given in their robots.txt.
The link you're looking for is this one:
http://www.facebook.com/apps/site_scraping_tos.php
If you're not a huge organization already, don't expect to be explicitly whitelisted there. If you're not explicitly whitelisted, you're not allowed to crawl at all, according to the robots.txt and the TOS. You must use the API instead.
Don't even think about pretending to be one of the whitelisted crawlers. Facebook filters by whitelisted IP for each crawler and anything else that looks at all like crawling gets an instant perma-ban. For a while users who simply clicked too fast could occasionally run into this.
Since this is a community with login & password, I am not sure how much of it is legally crawl-able. If you see even Google indexes just the user profile pages. But not their wall posts or photos etc.
I would suggest you to post this question in Facebook Forum. But you can check it up here -
Facebook Developers
Facebook Developers Documentation
Facebook Developers Forum