Python Twitter Bot - The Best Beginner Project

preview_player
Показать описание
Creating a Python Twitter bot is a great project to put on a resume because it's interactive - people can see the results without having to pull down your code. Today, we will create a simple Python bot that pulls down financial news articles from an RSS feed and uses the Twitter API to post them to Twitter.

Resources:

My bots:

Be sure to follow me on these other platforms for more tutorials:

Timestamps
00:00 | Intro
00:17 | Getting API Keys from Twitter
1:40 | Setting up Tweepy client
2:32 | Hiding keys in .env file
4:14 | Parsing RSS feed with feedparser
5:56 | Creating class to store article information
7:19 | Shortening URLs with pyshortener
8:31 | Creating class to handle state
11:29 | Creating function to check if article was posted within the last hour
13:19 | Implementing retries and exponential backoff
15:21 | Testing the bot
16:34 | Outro

#python #coding #api #twitter #bot #beginner #project #resume #tech #softwaredeveloper #computerscience #code #softwareengineer #coding #learntocode2024 #learnpython
Рекомендации по теме
Комментарии
Автор

Amazing video so far man. Really helpful, especially with the new changes to Twitter's API accessibility; lots of links to API documentation don't work (namely the Postman links, alongside other pages that simply do not exist anymore!) and the names of API plans have been changed (elevated status no longer exists). This video was incredibly helpful beyond the usage of Twitter's API, diving into other topics I did not expect to find in a 38 view video. I hope you find the coverage you deserve lol, seriously. 10/10

twitchtveldenkoo
Автор

Amazing tutorial! I was struggling with the new oAuth settings, so this was tremendously helpful -- Thanks!

cyzstix
join shbcf.ru