How to change Twitter Source Label [Complete 2023 Guide]

change Twitter Source Label
change Twitter Source Label

Have you ever wondered how some Twitter users have a completely different and unique Source label in their tweets? If you are also interested to change the Twitter Source Label for your tweets, then this guide is for you. the Twitter Source Lable indicates which app/service and device has been used by the tweeter to publish that particular tweet. Hence it is technically not possible to change the source label.

Then how there are tweets with custom source labels like GUCCI SmartToilet™? Well, this is where the Twitter API comes into play. Though it is not directly possible to change the source labels of your tweets, you can create your own Twitter API-based application to publish your tweets with the source labels of your choice.

How to change Twitter Source Label

As I mentioned above, to have a custom Twitter Source Label, you’ll have to have your own Twitter API-based application. Below is a complete step-by-step guide on how you can create your own Twitter application and publish as many tweets as possible with a changed/custom Twitter source label.

Step 1: Creating the Twitter Developer Account

  1. Head over to the Twitter Developer website and sing up by filling in the required credentials.

  2. Once the Twitter Developer account is created, you will be asked to confirm your email address. Simply, open and go to the inbox of your email and click on Confirm your email.

  3. After email confirmation, you are all set to start building your own Twitter app.

Step 2: Getting the Twitter API

  1. Now you have your Twitter Developer account where you can create your own Twitter app. Head over to this link i.e. the dashboard of your Twitter developer account and click on Create Project.
  2. Give your Project a name and click on Next.

  3. Select an appropriate use case of your app that you are gonna create and hit Next again.

  4. Give your project a proper description followed by clicking on Next.
  5. Your Project has successfully been created. Now, it’s time to give a name to your app that you are building. This is a crucial step, as this name will be shown as the source label on the tweets that you’ll publish using this app. Give your app a suitable name of your desire and hit Next.

  6. As soon as you’ll hit next, Twitter will greet you with the API keys and tokens. Note down the API Key and API Key Secret as we’ll be using it in the coming steps. After that, scroll down and click on App Settings.

  7. Here, under the Settings tab, scroll down to the User authentication settings and click on Set Up.

  8. Switch on the OAuth 1.0a toggle, and change the App permissions to Read and write.
  9. Scroll down a bit more under the GENERAL AUTHENTICATION SETTINGS section where it will be asking for CallBack and Website URL. You can simply use your Insta or Twitter profile URL here. Finally, click on Save.

  10. Now switch to the Keys and tokens tab and there you’ll see your API keys and access tokens. Click on the Generate button of the Access Token and Secret option and note down both keys.
  11. Now you have access to the Twitter API key and the Access Tokens. We’ll come back to them a bit later.

Step 3: Installing and Setting up Python

Now that you are all set with your Twitter API keys and Tokens, you will have to have Python installed on your PC in order to build the app. Let’s start installing and setting up Python on your PC.

  • Head over to the Python website and download Python for your computer OS.

  • Now open the downloaded file and install python just like you install any other program. Just make sure to remember the location where you have installed Python. Once installed, close the installer.

Step 4: Installing Tweepy

  • Now, navigate to the location where you have installed Python, open the Scripts folder, and copy the complete location path. If you have installed Python on the default location, it should look like this:
    C:\Users\Bhanu Pratap\AppData\Local\Programs\Python\Python310\Scripts
  • Now search for the command prompt and run it as administrator.
  • In the Command Prompt window, type in the following:
    cd [the file location you copied in the previous step

    So in my case, the command is:
    cd C:\Users\Bhanu Pratap\AppData\Local\Programs\Python\Python310\Scripts

  • Now execute the following command:
    pip install tweepy

  • Once tweepy is installed, you can close the command prompt.

Step 5: Create the Python file with your Twitter API

  • Now again navigate to the Python Scripts folder, right-click in the empty space, and go to New > Text Document.

  • In the Text Document, paste the following code:

    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!")
  • The above code is to post tweet with text only. If you want to add gifs, images, or videos to your tweet, paste the following code instead:

    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!")
  • After pasting the code, replace the Placeholders with their respective values:
    • CONSUMER KEY HERE = replace it with the API key
    • CONSUMER KEY SECRET HERE = replace it with the API Key Secret
    • ACCESS TOKEN HERE = replace it with the Access Token
    • ACCESS TOKEN SECRET HERE = replace it with the Access Token Secret
  • You can get all these from the Keys and Tokens of your Twitter developer App page.
  • After changing the placeholder, your text document would look like this:

  • Now save the text document and name it as per your desire followed by adding .py at the end of its name.

Step 6: Publishing the tweet with the new Source Label

Now you are all set to publish the tweet on your Twitter profile with a new Source Label. To do this:

  • Open the file that you saved in the previous step. In my case it is
  • Type in the text that you want to publish in your tweet and hit the Enter key.
  • It will be followed by a Done! the message, indicating that the text you have typed has successfully been published with your set Twitter Source Label.

Bottom Line

So, this is how you can change the Source Label of your Twitter tweets. In order to have the new Source Label in your tweets, you’ll have to use this python file every single time. I hope this tutorial was a helpful one for you and you’ll now be able to publish your tweets with some cool custom Twitter Source Labels.

If you have any questions or suggestions then please write them to me in the comments below.

Also Read:

Rate this post
Posted by
Bhanu Pratap

Hi! I am Bhanu Pratap, co-founder of Yorker Media Group. A die-heart fan of tech and keeps track of every little happening of the same. When not writing, I usually keep myself busy on YouTube making and exploring new and awesome tech content.


  1. hi! i followed all the instructions. i put .py after the file but i couldn’t open the file in python. it opens but closes immediately.

    1. that happened to me too!

    2. figured it out! when you press save as the old “new text document” is there still, just delete it & it should work (:

      1. it still doesn’t work for me

  2. What about with v2 of the api?

  3. it crashes! does anyone have a solution

Leave a Reply

Your email address will not be published. Required fields are marked *