VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
Create A Twitter Bot With Python

Create A Twitter Bot With Python

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
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
Date: 2022-03-14

Comments and reviews: 9


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?
reply

I might be late to the party but I have a question about the grabbing of pictures in this example. I grabbed the source code and ran it but i'm getting a lot of files that are corrupted or damaged or to large and cannot be opened. Just trying to understand the implementation and if I'm doing something wrong here. Thank you again for your time. .
reply

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?

reply

Brother please help me why my model folder is empty all d time .. photoes doesnt download in that folder ... I have even tried cfscrape module which i saw in comment section still the directory is showing empty .. please help .. m using windows and pycharm
reply

Brother please help me why my model folder is empty all d time .. photoes doesnt download in that folder ... I have even tried cfscrape module which i saw in comment section still the directory is showing empty .. please help .. m using windows and pycharm
reply

Thanks for a real-world short example! That said, it must be said: / is slash or forward slash. \ is backslash. URLs use forward slash, Windows drive paths and escaped chars use backslash.
reply

Great video. Just a note, when you use -with- to open a file, it automatically closes it after the operation, so you don-t need to write f.close(). Cheers!
reply

The problem with API's is they can always restrict how many posts you can make, but with selenium you can make a bot that looks more like a regular user.
reply

Hi ! Thanks a lot for this !!
Also i'd like to know the possible reasons as to why the soup.findAll() is not returning anything when i try.

reply
Add a review, comment






Other channel videos