Create A Twitter Bot With Python

Python

Video is ready, Click Here to View ×


Create a Twitter bot with Python that tweets images or status updates at a set interval. The Python script also scrapes the web for data.

💻Code: https://github.com/jg-fisher/theModelBot

Tutorial created by John G. Fisher. Watch more great tutorial from John on his YouTube channel:
https://www.youtube.com/channel/UCoMAKPDECRWb7GEWF1lQZMQ

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming:…

30 thoughts on “Create A Twitter Bot With Python

  1. In your image scraping code. The line where you have f.write(request.get(url).content…

    Why not have f.write(source.content…

    You already have the response when you ran request the first time, there is not need to run it again. Is that not a bit inefficient?

  2. I have been working on this now for two days and still cant get it to work. I am on a ubuntu 18.04 laptop and used gedit to make my two files. I have already made my twitter bot and setup the api keys needed. but I dont know how to execute my code. I have tried pycharm and bluefish but keep getting errors or nothing at all happens. Is there a missing step not covered in the video?

  3. i'm having some problem with your code when i run your code i'ts make a folder name model but inside it have no image ? i copy your code from github can you tell me why?

Leave a Reply

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