Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
August 13, 2020 10:32 pm GMT

How to change Twitter Source Label

You might have seen some people using completely different source labels like Gucci SmartToilet or something fancy.

Alt Text

Well, today we will see how to change the twitter source label

Twitter Source Label comes from the app you are using like Twitter for iOS, Twitter for Android, Twitter Web App, etc.
So you need to create your own twitter app in order to change the source label.

First, we need to have a Twitter developer account, if you don't have.

1) Just navigate to Twitter Developer website
2) Just fill out the form with details about what you want to do with their API. You will be redirected to four forms, one form after another, complete them, and agree to the developer terms and conditions and submit the application.
This process may take like 10 minutes and you will get a verification email instantly once you submitted the form.

Alt Text

After getting approval from Twitter. Now we can create an app

1) Open this link and click on "create app"

2) Give your app a name and this name will be shown on your tweets as a source label. And you can't name an app which is already present.

Alt Text

3) Next, you will be redirected to API keys, tokens and click on "App Settings"

Alt Text

4) Now scroll down to the App permissions section and change the option from Read to Read and Write and click on Save.

Alt Text

5) Scroll down to Authentication settings and turn on 3rd party authentication. It also asks for your website link, you can use your Instagram profile or your twitter profile.
Then click on Save.

Alt Text

6) Now scroll to the top, and click on the option called Keys and Tokens. Click on it and there you can see your Twitter API keys and Access Tokens by click on the view keys button and generate button respectively.

Alt Text

7) Now you have access to Twitter APIs, to create a Twitter app, you need to download Python.
If you don't have python installed, navigate to Python website and download.

8) Now, open the file location of where you have installed python and navigate to "Scripts" folder
C:\Users\"YourUsername"\AppData\Local\Programs\Python\Python37\Scripts

Alt Text

9) Now, Open Command Prompt, and type cd, give space and paste your python file location and click enter

cd C:\Users\"YourUsername"\AppData\Local\Programs\Python\Python37\Scripts

10) Now type the command and hit enter

pip install tweepy

Alt Text

11) Once installed, close the command prompt. Now in the python scripts folder, right-click and click on New > text document to create a new document.

Alt Text

12) Now open that document and paste this code inside

import tweepyauth = 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!")

Now replace the placeholders with your twitter APIs. Remember that there are 4 APIs to change API Key, API Secret Key, Access Token, and Access Token Secret.
Once done, it should look like this

Alt Text

13) Now save the file and name it anything, but change the save as type to All files and add .py at the end of the file name to save it as a python file and click save.

14) Now open that .py file you just made. Thats it, you can type anything in this command line and click enter.
It will be tweeted as a new tweet.

Alt Text

That's it. Hola you finally did it

If any queries, please let me know in comments

Hope it's useful

A would be Awesome


Original Link: https://dev.to/aletisunil/how-to-change-twitter-source-label-2o5e

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To