DEV Community

loading...
Cover image for Twitter automatic name changer based on your followers!

Twitter automatic name changer based on your followers!

erraghavkhanna profile image Raghav Khanna ・1 min read

Twitter automatic name changer based on your followers
Example-

my twitter handle @erraghavkhanna

Alt Text

Usage

Github link - https://github.com/raghavkhanna30/twitter-auto-name-changer

Step 1 - Getting twitter API keys

go to the twitter developers page. In the Create an app enter the informations like app name, app description and so on. it asked me to clearly explain the reason of how I'm going to use the app After reviewing the terms,] app will be created. Note down the Consumer API key, Consumer API Secret key and Access token & access token secret keys!

Step 2 - updating config.py

in config.py enter your Consumer API key, Consumer API Secret key and Access token & access token secret keys. after that save it.

In mainbot.py Edit your username and you are all done !

Heroku deployment

for this you need to create a procfile with worker as mainbot.py and that's it !

Discussion (2)

pic
Editor guide
Collapse
scrabill profile image
Shannon Crabill

I wasn't sure what you were changing at first until I peaked at your config files.

Maybe you can clarify that it changes your display name and not Twitter handle.

Overall, I wonder what else you can do with this set up.

Collapse
erraghavkhanna profile image
Raghav Khanna Author

Okay i mentioned "Name Changer" Not "Handle changer".
Thinking about it what else can be done!