You may have noticed some people utilising completely new source labels for their tweets, such as Gucci SmartToilet; if you'd like to do the same, simply follow the steps below.
The Twitter Source Label is determined by the programme you're using, such as Twitter for iOS, Flamingo for Android, or the Twitter Web App. To modify the source label, you'll need to make your own Twitter app. But don't worry, it's a simple procedure. All you have to do now is get verified on Twitter and construct a Python app utilising the Twitter APIs they provided.
It may take 20–30 minutes to complete the procedure, but once completed, you can tweet as many times as you like or even develop additional apps in a matter of minutes. And the best part is that it is not as difficult as it appears; anyone can do it. However, there are two restrictions: you can only upload text (no videos or graphics) and you can't use an app name that already exists, such as Twitter Web App. Let's get started now that that's out of the way.
Go to the Twitter Developer page and connect in with your Twitter account to create your own Twitter app. In the top right corner, you should now see an option named " Create an app."
You'll be taken to a page where you may apply to be verified to use Twitter APIs. There's nothing serious here; simply fill out the form with information on "what you wish to do with their API." You will be routed to four forms, one after the other, which you must complete, agree to the developer's terms and conditions, and submit. This process may take up to 10 minutes, and you will receive an email confirmation as soon as you submit the form.
In the email sent by Twitter Developer Accounts, open it and click the "Confirm your email" option. You'll be sent back to the Twitter developer page after that, which you can close.
Now access this page, scroll down, and select the (+ Create app) option in the standalone apps area.
Give your app a name; keep in mind that this name will appear as a source label on your tweets. You can't call your programme something like Twitter for Android or something like. So give it a unique name and click Finish.
Now that you've seen your app APIs, scroll down and click "App settings" to make a few changes.
Scroll down to the App permissions section and change the "Read" option to "Read and Write" before clicking Save.
Scroll down to the Authentication options section and enable third-party authentication. It also asks for a link to your website; you can use your Instagram or Twitter profile if you like. Then press the Save button.
Now travel to the top of the page and select "Keys and Tokens." By clicking on the "view keys" and "create" buttons, you may view and produce your Twitter API keys and Access Tokens, respectively. Keep this tab open since these will come in handy later.
To construct a Twitter app, you'll need to download Python now that you have access to the Twitter APIs. Open the Python website and download the appropriate Python for your operating system.
Open the Python file you downloaded and install it just like any other piece of software. Close the installer when you're finished.
Now go to the directory where you installed Python and open the file. If you haven't already, you can find the installation location here: - C:Users"YourUserName"AppDataLocalProgramsPythonPython38-32 Python38-32 Python38-32 Open the Scripts folder now and copy the entire path. This is how it should now look.
"C:\Users\"YourUserName"\AppData\Local\Programs\Python\Python38-32\Scripts"
If you don't see the "AppData" folder in your user account, here's how to find it. Simply type "AppData" at the end of the address in the location bar, and it will open.
Now, open Command Prompt and type cd, leave a space, then paste the location of your Python file, then press enter.
"cd C:\Users\"YourUserName"\AppData\Local\Programs\Python\Python38-32\Scripts"
Now write the following command and press enter.
"pip install tweepy"
Close the command prompt once it has been installed. To create a new document, right-click on the python scripts folder and select New > text document.
Now open that document and paste the following code into it.
"import tweepy auth = tweepy.OAuthHandler("CONSUMER KEY HERE", "CONSUMER KEY SECRET HERE") auth.set_access_token("ACCESS TOKEN HERE", "ACCESS TOKEN SECRET HERE") api = tweepy.API(auth) tweet = input(" ") api.update_status(status =(tweet)) print ("Done!")"
That code will only be used for posting text-only tweets. Include another line to your code and paste this code instead if you want to add photos, gifs, or videos to your tweet.
"import tweepy auth = tweepy.OAuthHandler("CONSUMER KEY HERE", "CONSUMER KEY SECRET HERE") auth.set_access_token("ACCESS TOKEN HERE", "ACCESS TOKEN SECRET HERE") api = tweepy.API(auth) tweet = input("") image="C:\Users\ravit\Downloads\AppSheet_Logo" #Enter image location api.update_with_media(image, tweet) print ("Done!")"
Now, replace the placeholders with the Twitter APIs you want to use. API Key, API Secret Key, Access Token, and Access Token Secret are the four APIs that must be changed. When you're finished, it should look like this.
Save the file with whatever name you like, but change the save as type to "All files" and add ".py" to the end of the file name to save it as a Python file, then save it. Take a look at this illustration as an example.
Now you can open the Py file you just created. That's all there is to it; type whatever you want in this command line and hit enter. It will be tweeted as a separate message. You can tweet as many times as you want with this py file.
Please let us know if you have any issues in the comments section below.