---
title: "Discussion on \"Create a Twitter Bot With Python\" | Hashnode"
description: "Discussion on \"Create a Twitter Bot With Python\". Learn how to host and create a bot with the Twitter API before Twitter's demise"
url: "https://hashnode.com/posts/create-a-twitter-bot-with-python/6369338a19d4e268a7629053"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Create a Twitter Bot With Python](https://sarahdepalo.hashnode.dev/create-a-twitter-bot-with-python?utm_source=hashnode&utm_medium=feed)

Learn how to host and create a bot with the Twitter API before Twitter's demise

Nov 7, 2022 · 21 min read · sarahdepalo.hashnode.dev  
Updated May 9, 2023  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#twitter](https://hashnode.com/tag/twitter)
-   [#apis](https://hashnode.com/tag/apis)
-   [#automation](https://hashnode.com/tag/automation)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Sarah](https://hashnode.com/@sarahcodes)

@sarahcodes · North Carolina

  
[View profile](https://hashnode.com/@sarahcodes)

I create beginner friendly tutorials and articles.

I believe that programming can transform a person's career and life. I create resources that can help newbies and fellow bootcamp grads expand their learning.

## Responses 12

Markdown supported · ⌘↵ to post

[dara akojede](https://hashnode.com/@dvrvsimi)

[Feb 3, 2023](https://hashnode.com/posts/create-a-twitter-bot-with-python/6369338a19d4e268a7629053/comment/63dd2f442f21c58845cbbbd7)

##someone from the future: I got the elevated access 2 days before I saw the tweet

[Victor Barros](https://hashnode.com/@victorbarros)

[Nov 18, 2022](https://hashnode.com/posts/create-a-twitter-bot-with-python/6369338a19d4e268a7629053/comment/637796c94ecc88853c130511)

Hello, Sarah

**Kudos, your article is super didactic and inspiring!**

A few months ago, I also created a twitter bot with a design similar to yours, the [**@UraniumStockBot**](https://hashnode.com/posts/create-a-twitter-bot-with-python/twitter.com/uraniumStockBot), [Code](https://github.com/victorabarros/ura-bot).

One approach that could be better is using **serverless** products. As your application has a scheduler that triggers it, you don't need it up and running full-time. This way, you can **save money and resources**.

For example, I deployed the application at **Heroku** and used **EasyCron** to trigger it every half hour. Between one each trigger, the instance is turned off.

I hope I have opened your mind to new ideas. =\]

Bests

[Sarah](https://hashnode.com/@sarahcodes)

[Dec 2, 2022](https://hashnode.com/posts/create-a-twitter-bot-with-python/6369338a19d4e268a7629053/comment/637796c94ecc88853c130511#reply-638a56d51338cf81a876540a)

Hello Victor!

I think that is a good alternative. AWS is great until the free tier runs out! ;) I have not heard of EasyCron before so thank you for sharing.

[Laurent I](https://hashnode.com/@6Lack)

[Nov 15, 2022](https://hashnode.com/posts/create-a-twitter-bot-with-python/6369338a19d4e268a7629053/comment/63731e5f94b18c4621bda0a5)

nice one 🎉

[Ashley Chamboko](https://hashnode.com/@achambok294)

[Nov 11, 2022](https://hashnode.com/posts/create-a-twitter-bot-with-python/6369338a19d4e268a7629053/comment/636dedbad39e95121c4b21ba)

Thanks for the great article, you really went deep into it, thanks for dedicated time and effort.

[iSteven Zion](https://hashnode.com/@iStevenZion)

[Nov 10, 2022](https://hashnode.com/posts/create-a-twitter-bot-with-python/6369338a19d4e268a7629053/comment/636cc0a52e3b6701485c1a12)

am sure you've written an article on aws, please share link I cant seem to understand how aws works

[Futuritous](https://hashnode.com/@Futuritous)

[Nov 10, 2022](https://hashnode.com/posts/create-a-twitter-bot-with-python/6369338a19d4e268a7629053/comment/636c78a5eb5f75ff0efc2e41)

Will surely try it when I get time Sarah! Bookmarked ❤️

[Muzzammil](https://hashnode.com/@humblemuzzu)

[Nov 9, 2022](https://hashnode.com/posts/create-a-twitter-bot-with-python/6369338a19d4e268a7629053/comment/636b9fa04c5666f6e4c1758e)

It's really mind-blowing ☺️

[Mirza Ismail Baig](https://hashnode.com/@MiirzaBaig)

[Nov 9, 2022](https://hashnode.com/posts/create-a-twitter-bot-with-python/6369338a19d4e268a7629053/comment/636b9860c7ea3df1de8339a2)

Yes, it's fun in Reading but at the same time it seems, I get motivated!

[Victoria Lo](https://hashnode.com/@victoria)

[Nov 9, 2022](https://hashnode.com/posts/create-a-twitter-bot-with-python/6369338a19d4e268a7629053/comment/636b1bc2e7a238eca83469de)

What a fun read! Thanks for sharing [Sarah](https://hashnode.com/@sarahcodes)! :)

[Uchenna J. Onyenso](https://hashnode.com/@Alphadevvv)

[Nov 9, 2022](https://hashnode.com/posts/create-a-twitter-bot-with-python/6369338a19d4e268a7629053/comment/636b0643832bb6eb4df9cfa2)

Thanks so much for this. Exactly what I needed to create mine.

[Sarah](https://hashnode.com/@sarahcodes)

[Nov 10, 2022](https://hashnode.com/posts/create-a-twitter-bot-with-python/6369338a19d4e268a7629053/comment/636b0643832bb6eb4df9cfa2#reply-636d3f67ea115907a994a6ea)

So glad that I could help. Hope it goes well!

[Jyotirmoy Roy](https://hashnode.com/@ItsRoy69)

[Nov 8, 2022](https://hashnode.com/posts/create-a-twitter-bot-with-python/6369338a19d4e268a7629053/comment/636a46e9112160e28e514f3e)

I was searching for some guides to build twitter bot and found this...great article

[Sarah](https://hashnode.com/@sarahcodes)

[Nov 10, 2022](https://hashnode.com/posts/create-a-twitter-bot-with-python/6369338a19d4e268a7629053/comment/636a46e9112160e28e514f3e#reply-636d3f47ea115907a994a6e4)

Thank you! Let me know if you end up making a bot.

[Jyotirmoy Roy](https://hashnode.com/@ItsRoy69)

[Nov 10, 2022](https://hashnode.com/posts/create-a-twitter-bot-with-python/6369338a19d4e268a7629053/comment/636a46e9112160e28e514f3e#reply-636d41ecea115907a994a726)

Yes . Its in progress [Sarah](https://hashnode.com/@sarahcodes)
