René's URL Explorer Experiment


Title: How to Make a Twitter Bot in Python With Tweepy – Real Python

Open Graph Title: How to Make a Twitter Bot in Python With Tweepy – Real Python

Description: In this step-by-step tutorial, you'll learn how to make a Twitter bot in Python with Tweepy, which is a package that provides a very convenient way to use the Twitter API. You can use your Twitter bot to automate all or part of your Twitter activity.

Open Graph Description: In this step-by-step tutorial, you'll learn how to make a Twitter bot in Python with Tweepy, which is a package that provides a very convenient way to use the Twitter API. You can use your Twitter bot to automate all or part of your Twitter activity.

Mail addresses
?subject=Python article for you&body=How to Make a Twitter Bot in Python With Tweepy on Real Python https://realpython.com/twitter-bot-python-tweepy/

Opengraph URL: https://realpython.com/twitter-bot-python-tweepy/

X: @realpython

direct link

Domain: realpython.com


Hey, it has json ld scripts:
{
  "@context": "http://schema.org",
  "@type": "Article",
  "headline": "How to Make a Twitter Bot in Python With Tweepy",
  "image": {
    "@type": "ImageObject",
    "url": "https://files.realpython.com/media/How-to-Make-a-Twitter-Bot-in-Python-with-Tweepy_Watermarked.e0e3b3e8f6ce.jpg",
    "width": 1920,
    "height": 1080
  },
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://realpython.com/twitter-bot-python-tweepy/",
    "lastReviewed": "2023-05-12",
    "author": {
      "@type": "Person",
      "name": "Miguel Garcia",
      "image": "https://realpython.com/cdn-cgi/image/width=512,height=512,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/me.9b74532600a1.jpg",
      "url": "https://realpython.com/team/mgarcia/",
      "affiliation": {
        "@type": "Organization",
        "@id": "https://realpython.com/#organization",
        "name": "Real Python",
        "url": "https://realpython.com",
        "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
      }
    },
    "reviewedBy": [
      {
        "@type": "Person",
        "name": "Aldren Santos",
        "image": "https://realpython.com/cdn-cgi/image/width=500,height=500,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/Aldren_Santos_Real_Python.6b0861d8b841.png",
        "url": "https://realpython.com/team/asantos/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Joanna Jablonski",
        "image": "https://realpython.com/cdn-cgi/image/width=800,height=800,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/jjablonksi-avatar.e37c4f83308e.jpg",
        "url": "https://realpython.com/team/jjablonski/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Mike Driscoll",
        "image": "https://realpython.com/cdn-cgi/image/width=900,height=900,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/mdriscoll.db44df0df864.jpg",
        "url": "https://realpython.com/team/mdriscoll/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      }
    ]
  },
  "datePublished": "2019-06-10T14:00:00+00:00",
  "dateModified": "2023-05-12T22:39:11.894568+00:00",
  "publisher": {
    "@type": "Organization",
    "@id": "https://realpython.com/#organization",
    "name": "Real Python",
    "url": "https://realpython.com",
    "logo": {
      "@type": "ImageObject",
      "url": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png",
      "width": 512,
      "height": 512
    },
    "description": "Real Python is a leading provider of online Python education and one of the largest language-specific online communities for software developers. It publishes high-quality learning resources, such as tutorials, books, and courses to an audience of millions of developers, data scientists, and machine learning engineers each month.",
    "slogan": "Become a Python Expert",
    "email": "info@realpython.com",
    "sameAs": [
      "https://github.com/realpython",
      "https://www.youtube.com/realpython",
      "https://twitter.com/realpython",
      "https://x.com/realpython",
      "https://www.linkedin.com/company/realpython-com/",
      "https://www.facebook.com/learnrealpython",
      "https://www.instagram.com/realpython",
      "https://www.tiktok.com/@realpython.com"
    ]
  },
  "author": {
    "@type": "Person",
    "name": "Miguel Garcia",
    "image": "https://realpython.com/cdn-cgi/image/width=512,height=512,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/me.9b74532600a1.jpg",
    "url": "https://realpython.com/team/mgarcia/",
    "affiliation": {
      "@type": "Organization",
      "@id": "https://realpython.com/#organization",
      "name": "Real Python",
      "url": "https://realpython.com",
      "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
    }
  },
  "description": "In this step-by-step tutorial, you'll learn how to make a Twitter bot in Python with Tweepy, which is a package that provides a very convenient way to use the Twitter API. You can use your Twitter bot to automate all or part of your Twitter activity."
}

authorReal Python
twitter:cardsummary_large_image
twitter:imagehttps://files.realpython.com/media/How-to-Make-a-Twitter-Bot-in-Python-with-Tweepy_Watermarked.e0e3b3e8f6ce.jpg
og:imagehttps://files.realpython.com/media/How-to-Make-a-Twitter-Bot-in-Python-with-Tweepy_Watermarked.e0e3b3e8f6ce.jpg
twitter:creator@realpython
og:typearticle

Links:

https://realpython.com/
Start Herehttps://realpython.com/start-here/
Learn Python https://realpython.com/twitter-bot-python-tweepy/
Python Tutorials →In-depth articles and video courseshttps://realpython.com/search?kind=article&kind=course&order=newest
Learning Paths →Guided study plans for accelerated learninghttps://realpython.com/learning-paths/
Quizzes & Exercises →Check your learning progresshttps://realpython.com/quizzes/
Browse Topics →Focus on a specific area or skill levelhttps://realpython.com/tutorials/all/
Community Chat →Learn with other Pythonistashttps://realpython.com/community/
Office Hours →Live Q&A calls with Python expertshttps://realpython.com/office-hours/
Podcast →Hear what’s new in the world of Pythonhttps://realpython.com/podcasts/rpp/
Books →Round out your knowledge and learn offlinehttps://realpython.com/products/books/
Reference →Concise definitions for common Python termshttps://realpython.com/ref/
Code Mentor →BetaPersonalized code assistance & learning toolshttps://realpython.com/mentor/
Unlock All Content →https://realpython.com/account/join/
More https://realpython.com/twitter-bot-python-tweepy/
Learner Storieshttps://realpython.com/learner-stories/
Python Newsletterhttps://realpython.com/newsletter/
Python Job Boardhttps://www.pythonjobshq.com
Meet the Teamhttps://realpython.com/team/
Become a Tutorial Writerhttps://realpython.com/write-for-us/
Become a Video Instructorhttps://realpython.com/become-an-instructor/
Searchhttps://realpython.com/search
https://realpython.com/search
Joinhttps://realpython.com/account/join/
Sign‑Inhttps://realpython.com/account/login/?next=%2Ftwitter-bot-python-tweepy%2F
Browse Topicshttps://realpython.com/tutorials/all/
Guided Learning Pathshttps://realpython.com/learning-paths/
Basicshttps://realpython.com/search?level=basics
Intermediatehttps://realpython.com/search?level=intermediate
Advancedhttps://realpython.com/search?level=advanced
aihttps://realpython.com/tutorials/ai/
algorithmshttps://realpython.com/tutorials/algorithms/
apihttps://realpython.com/tutorials/api/
best-practiceshttps://realpython.com/tutorials/best-practices/
careerhttps://realpython.com/tutorials/career/
communityhttps://realpython.com/tutorials/community/
databaseshttps://realpython.com/tutorials/databases/
data-sciencehttps://realpython.com/tutorials/data-science/
data-structureshttps://realpython.com/tutorials/data-structures/
data-vizhttps://realpython.com/tutorials/data-viz/
devopshttps://realpython.com/tutorials/devops/
djangohttps://realpython.com/tutorials/django/
dockerhttps://realpython.com/tutorials/docker/
editorshttps://realpython.com/tutorials/editors/
flaskhttps://realpython.com/tutorials/flask/
front-endhttps://realpython.com/tutorials/front-end/
gamedevhttps://realpython.com/tutorials/gamedev/
guihttps://realpython.com/tutorials/gui/
machine-learninghttps://realpython.com/tutorials/machine-learning/
newshttps://realpython.com/tutorials/news/
numpyhttps://realpython.com/tutorials/numpy/
projectshttps://realpython.com/tutorials/projects/
pythonhttps://realpython.com/tutorials/python/
stdlibhttps://realpython.com/tutorials/stdlib/
testinghttps://realpython.com/tutorials/testing/
toolshttps://realpython.com/tutorials/tools/
web-devhttps://realpython.com/tutorials/web-dev/
web-scrapinghttps://realpython.com/tutorials/web-scraping/
Table of Contentshttps://realpython.com/twitter-bot-python-tweepy/#toc
Hello Tweepyhttps://realpython.com/twitter-bot-python-tweepy/#hello-tweepy
Twitter APIhttps://realpython.com/twitter-bot-python-tweepy/#twitter-api
What Is Tweepy?https://realpython.com/twitter-bot-python-tweepy/#what-is-tweepy
Using Tweepyhttps://realpython.com/twitter-bot-python-tweepy/#using-tweepy
Installationhttps://realpython.com/twitter-bot-python-tweepy/#installation
Creating Twitter API Authentication Credentialshttps://realpython.com/twitter-bot-python-tweepy/#creating-twitter-api-authentication-credentials
Review of Tweepy Functionalityhttps://realpython.com/twitter-bot-python-tweepy/#review-of-tweepy-functionality
How to Make a Twitter Bot in Python With Tweepyhttps://realpython.com/twitter-bot-python-tweepy/#how-to-make-a-twitter-bot-in-python-with-tweepy
Watching for Twitter Activityhttps://realpython.com/twitter-bot-python-tweepy/#watching-for-twitter-activity
Presenting the Example Botshttps://realpython.com/twitter-bot-python-tweepy/#presenting-the-example-bots
The Config Modulehttps://realpython.com/twitter-bot-python-tweepy/#the-config-module
The Follow Followers Bothttps://realpython.com/twitter-bot-python-tweepy/#the-follow-followers-bot
The Fav & Retweet Bothttps://realpython.com/twitter-bot-python-tweepy/#the-fav-retweet-bot
The Reply to Mentions Bothttps://realpython.com/twitter-bot-python-tweepy/#the-reply-to-mentions-bot
Deploying Bots to a Server Using Dockerhttps://realpython.com/twitter-bot-python-tweepy/#deploying-bots-to-a-server-using-docker
Building the Docker Imagehttps://realpython.com/twitter-bot-python-tweepy/#building-the-docker-image
Example: Deploying a Twitter Bot to Amazon AWShttps://realpython.com/twitter-bot-python-tweepy/#example-deploying-a-twitter-bot-to-amazon-aws
Wrapping Uphttps://realpython.com/twitter-bot-python-tweepy/#wrapping-up
https://realpython.com/feedback/survey/article/twitter-bot-python-tweepy/liked/?from=article-sidebar
https://realpython.com/feedback/survey/article/twitter-bot-python-tweepy/disliked/?from=article-sidebar
Miguel Garciahttps://realpython.com/twitter-bot-python-tweepy/#author
https://realpython.com/twitter-bot-python-tweepy/#reader-comments
intermediatehttps://realpython.com/tutorials/intermediate/
apihttps://realpython.com/tutorials/api/
projectshttps://realpython.com/tutorials/projects/
Hello Tweepyhttps://realpython.com/twitter-bot-python-tweepy/#hello-tweepy
Twitter APIhttps://realpython.com/twitter-bot-python-tweepy/#twitter-api
What Is Tweepy?https://realpython.com/twitter-bot-python-tweepy/#what-is-tweepy
Using Tweepyhttps://realpython.com/twitter-bot-python-tweepy/#using-tweepy
Installationhttps://realpython.com/twitter-bot-python-tweepy/#installation
Creating Twitter API Authentication Credentialshttps://realpython.com/twitter-bot-python-tweepy/#creating-twitter-api-authentication-credentials
Review of Tweepy Functionalityhttps://realpython.com/twitter-bot-python-tweepy/#review-of-tweepy-functionality
How to Make a Twitter Bot in Python With Tweepyhttps://realpython.com/twitter-bot-python-tweepy/#how-to-make-a-twitter-bot-in-python-with-tweepy
Watching for Twitter Activityhttps://realpython.com/twitter-bot-python-tweepy/#watching-for-twitter-activity
Presenting the Example Botshttps://realpython.com/twitter-bot-python-tweepy/#presenting-the-example-bots
The Config Modulehttps://realpython.com/twitter-bot-python-tweepy/#the-config-module
The Follow Followers Bothttps://realpython.com/twitter-bot-python-tweepy/#the-follow-followers-bot
The Fav & Retweet Bothttps://realpython.com/twitter-bot-python-tweepy/#the-fav-retweet-bot
The Reply to Mentions Bothttps://realpython.com/twitter-bot-python-tweepy/#the-reply-to-mentions-bot
Deploying Bots to a Server Using Dockerhttps://realpython.com/twitter-bot-python-tweepy/#deploying-bots-to-a-server-using-docker
Building the Docker Imagehttps://realpython.com/twitter-bot-python-tweepy/#building-the-docker-image
Example: Deploying a Twitter Bot to Amazon AWShttps://realpython.com/twitter-bot-python-tweepy/#example-deploying-a-twitter-bot-to-amazon-aws
Wrapping Uphttps://realpython.com/twitter-bot-python-tweepy/#wrapping-up
Remove adshttps://realpython.com/account/join/
5 Thoughts On Python Masteryhttps://realpython.com/bonus/python-mastery-course/
https://realpython.com/twitter-bot-python-tweepy/#hello-tweepy
Importhttps://realpython.com/absolute-vs-relative-python-imports/
Remove adshttps://realpython.com/account/join/
https://realpython.com/twitter-bot-python-tweepy/#twitter-api
OAuthhttps://oauth.net
Twitter Automationhttps://help.twitter.com/en/rules-and-policies/twitter-automation
Rate limitshttps://developer.twitter.com/en/docs/basics/rate-limits
https://realpython.com/twitter-bot-python-tweepy/#what-is-tweepy
Tweepyhttps://github.com/tweepy/tweepy
https://realpython.com/twitter-bot-python-tweepy/#using-tweepy
https://realpython.com/twitter-bot-python-tweepy/#installation
Python Virtual Environments: A Primerhttps://realpython.com/python-virtual-environments-a-primer/
What Is Pip? A Guide for New Pythonistashttps://realpython.com/what-is-pip/
dependencieshttps://realpython.com/courses/managing-python-dependencies/
venv documentationhttps://docs.python.org/3/library/venv.html
Remove adshttps://realpython.com/account/join/
https://realpython.com/twitter-bot-python-tweepy/#creating-twitter-api-authentication-credentials
Twitter developer sitehttps://developer.twitter.com
https://files.realpython.com/media/dev_account_01.2a5eab8edcb8.png
https://files.realpython.com/media/dev_account_02.f6f23b384b33.png
your Twitter apps pagehttps://developer.twitter.com/en/apps
your Twitter apps pagehttps://developer.twitter.com/en/apps
https://files.realpython.com/media/dev_account_06.fcb9c3b19939.png
https://files.realpython.com/media/dev_account_07.f37afa5ab26a.efd2422a33c8.png
Remove adshttps://realpython.com/account/join/
https://realpython.com/twitter-bot-python-tweepy/#review-of-tweepy-functionality
printhttps://realpython.com/python-print/
API Class Documentationhttps://tweepy.readthedocs.io/en/latest/api.html
Remove adshttps://realpython.com/account/join/
https://realpython.com/twitter-bot-python-tweepy/#how-to-make-a-twitter-bot-in-python-with-tweepy
https://realpython.com/twitter-bot-python-tweepy/#watching-for-twitter-activity
https://realpython.com/twitter-bot-python-tweepy/#presenting-the-example-bots
https://realpython.com/twitter-bot-python-tweepy/#the-config-module
Logging in Pythonhttps://realpython.com/python-logging/
Remove adshttps://realpython.com/account/join/
https://realpython.com/twitter-bot-python-tweepy/#the-follow-followers-bot
https://realpython.com/twitter-bot-python-tweepy/#the-fav-retweet-bot
Nonehttps://realpython.com/null-in-python/
Remove adshttps://realpython.com/account/join/
https://realpython.com/twitter-bot-python-tweepy/#the-reply-to-mentions-bot
https://realpython.com/twitter-bot-python-tweepy/#deploying-bots-to-a-server-using-docker
Build Robust Continuous Integration With Docker and Friendshttps://realpython.com/docker-continuous-integration/
https://realpython.com/twitter-bot-python-tweepy/#building-the-docker-image
Remove adshttps://realpython.com/account/join/
https://realpython.com/twitter-bot-python-tweepy/#example-deploying-a-twitter-bot-to-amazon-aws
Amazon AWShttps://aws.amazon.com
AWS consolehttps://aws.amazon.com/
https://files.realpython.com/media/aws_1.bc3ce5234c7e.png
https://files.realpython.com/media/aws_2.63baf00be335.png
https://files.realpython.com/media/aws_3.9844080cc9c4.png
https://files.realpython.com/media/aws_4.e1b0bc829b9c.png
https://files.realpython.com/media/aws_5.8535e23d58c9.4d395260998a.png
https://files.realpython.com/media/aws_6.cb10be3e43d0.png
https://files.realpython.com/media/aws_7.0d23fb8e4c7f.png
https://files.realpython.com/media/aws_8.daf1274ceeab.png
https://files.realpython.com/media/aws_9.6f76c4146b38.png
https://files.realpython.com/media/Captura_de_pantalla_de_2019-05-12_21-01-46.765f497770af.png
https://files.realpython.com/media/aws_11.e75996b3fab5.png
Remove adshttps://realpython.com/account/join/
https://realpython.com/twitter-bot-python-tweepy/#wrapping-up
Tweepy API documentationhttps://tweepy.readthedocs.io/en/latest/api.html
ChatterBothttps://realpython.com/build-a-chatbot-python-chatterbot/
InstaPyhttps://realpython.com/instagram-bot-python-instapy/
Discordhttps://realpython.com/how-to-make-a-discord-bot-python/
Alexa Skillshhttps://realpython.com/alexa-python-skill/
https://realpython.com/feedback/survey/article/twitter-bot-python-tweepy/liked/?from=article-footer
https://realpython.com/feedback/survey/article/twitter-bot-python-tweepy/disliked/?from=article-footer
https://realpython.com/team/mgarcia/
» More about Miguelhttps://realpython.com/team/mgarcia/
https://realpython.com/team/asantos/
Aldrenhttps://realpython.com/team/asantos/
https://realpython.com/team/jjablonski/
Joannahttps://realpython.com/team/jjablonski/
https://realpython.com/team/mdriscoll/
Mikehttps://realpython.com/team/mdriscoll/
Level Up Your Python Skills »https://realpython.com/account/join/?utm_source=rp_article_footer&utm_content=twitter-bot-python-tweepy
Level Up Your Python Skills »https://realpython.com/account/join/?utm_source=rp_article_footer&utm_content=twitter-bot-python-tweepy
https://realpython.com/feedback/survey/article/twitter-bot-python-tweepy/liked/?from=article-comments
https://realpython.com/feedback/survey/article/twitter-bot-python-tweepy/disliked/?from=article-comments
LinkedInhttps://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Frealpython.com%2Ftwitter-bot-python-tweepy%2F
Twitterhttps://twitter.com/intent/tweet/?text=Interesting%20Python%20article%20on%20%40realpython%3A%20How%20to%20Make%20a%20Twitter%20Bot%20in%20Python%20With%20Tweepy&url=https%3A%2F%2Frealpython.com%2Ftwitter-bot-python-tweepy%2F
Blueskyhttps://bsky.app/intent/compose?text=Interesting%20Python%20article%20on%20%40realpython.com%3A%20How%20to%20Make%20a%20Twitter%20Bot%20in%20Python%20With%20Tweepy%20https%3A%2F%2Frealpython.com%2Ftwitter-bot-python-tweepy%2F
Facebookhttps://facebook.com/sharer/sharer.php?u=https%3A%2F%2Frealpython.com%2Ftwitter-bot-python-tweepy%2F
Get tips for asking good questionshttps://realpython.com/python-beginner-tips/#tip-9-ask-good-questions
get answers to common questions in our support portalhttps://support.realpython.com
Real Python Community Chathttps://realpython.com/community/
“Office Hours” Live Q&A Sessionhttps://realpython.com/office-hours/
intermediatehttps://realpython.com/tutorials/intermediate/
apihttps://realpython.com/tutorials/api/
projectshttps://realpython.com/tutorials/projects/
Sentiment Analysis: First Steps With Python's NLTK Libraryhttps://realpython.com/python-nltk-sentiment-analysis/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=twitter-bot-python-tweepy
https://realpython.com/account/signup/?intent=continue_reading&utm_source=rp&utm_medium=web&utm_campaign=rwn&utm_content=v1&next=%2Ftwitter-bot-python-tweepy%2F
Continue »https://realpython.com/account/signup/?intent=continue_reading&utm_source=rp&utm_medium=web&utm_campaign=rwn&utm_content=v1&next=%2Ftwitter-bot-python-tweepy%2F
Sign-Inhttps://realpython.com/account/login/?next=/twitter-bot-python-tweepy/
Start Herehttps://realpython.com/start-here/
Learning Resourceshttps://realpython.com/search
Code Mentorhttps://realpython.com/mentor/
Python Referencehttps://realpython.com/ref/
Python Cheat Sheethttps://realpython.com/cheatsheets/python/
Support Centerhttps://support.realpython.com/
Learning Pathshttps://realpython.com/learning-paths/
Quizzes & Exerciseshttps://realpython.com/quizzes/
Browse Topicshttps://realpython.com/tutorials/all/
Live Courseshttps://realpython.com/live/
Bookshttps://realpython.com/books/
Podcasthttps://realpython.com/podcasts/rpp/
Newsletterhttps://realpython.com/newsletter/
Community Chathttps://realpython.com/community/
Office Hourshttps://realpython.com/office-hours/
Learner Storieshttps://realpython.com/learner-stories/
Plans & Pricinghttps://realpython.com/account/join/
Team Planshttps://realpython.com/account/join-team/
For Businesshttps://realpython.com/account/join-team/inquiry/
For Schoolshttps://realpython.com/account/join-team/education-inquiry/
Reviewshttps://realpython.com/learner-stories/
About Ushttps://realpython.com/about/
Teamhttps://realpython.com/team/
Mission & Valueshttps://realpython.com/mission/
Editorial Guidelineshttps://realpython.com/editorial-guidelines/
Sponsorshipshttps://realpython.com/sponsorships/
Careershttps://realpython.workable.com
Press Kithttps://realpython.com/media-kit/
Merchhttps://realpython.com/merch
https://www.youtube.com/realpython
https://x.com/realpython
https://www.linkedin.com/company/realpython-com
https://www.facebook.com/LearnRealPython
https://github.com/realpython/
Privacy Policyhttps://realpython.com/privacy-policy/
Terms of Usehttps://realpython.com/terms/
Securityhttps://realpython.com/security/
Contacthttps://realpython.com/contact/
https://realpython.com/

Viewport: width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover

Robots: max-image-preview:large


URLs of crawlers that visited me.