X (Twitter) Post Bot with Images using Python (+Tweepy)
Vložit
- čas přidán 4. 08. 2023
- X (Twitter) Account: / biblical_art
Bot Code: github.com/wiggam/x-twitter-bot
Database Code: github.com/wiggam/x-bot-database
Google Custom Search JSON API: developers.google.com/custom-...
this is so powerful and helpful , means alot thank you😇
Thank you very much, now I will be able to post orca pictures on the hour! Huzzah!
great one, learned a lot
Glad to hear! Thank you
thank you George
Wild!
Excellent work George! I am trying to create something similar but having trouble with the cloud part
Thank you! Do you mean putting it on a remote server? I used scp to send the files from my personal computer to the remote server. This required only one command to send the entire project. For example : scp {the name of the folder} root@{ip address of the server}:{file path on the remote server, destination} : there are some great tutorials available at to follow. Hopefully, this helps.
nice one want to see you pn more active on videos making. better to do things on crypto utilities
cool
Thank you!
Good tutorial when you cut out all virtual assistant crap it's actually useful to learn.
Can you post tweets longer than 280 characters? I have paid basic plan which allows me to normally post up to 25000 characters long but from the api I still cannot go over 280
I'm sorry, but what Database did you use.?
hello i'm syauqi from indonesia, can this source code be used to crawl sentiment analysis data? because I'm doing my thesis research
Hello, this code can be used to connect to a twitter developer account. This code only posts tweets with images, if you are looking to scrape data from Twitter, check out the tweepy documentation at docs.tweepy.org/en/stable/index.html > I would then look at: TWITTER API V2 REFERENCE > Client > then scroll down to see all the endpoints that are available to you and if any of those can help with your research. I also suggest using ChatGPT to find the best way to scrape the web, it may be another library unless you are specifically looking at twitter.
@@georgewiggam4292 thanks for answering and giving advice, I'll give it a try
I got an error: tweepy.errors.Forbidden: 403 Forbidden. Do I have to purchase some kind of Twitter API plan, to be ale to post tweets? Or is the problem somewhere else ?
Make sure your twitter developer app has enable read and write permissions. When you create a twitter developer app, the default is read only. Go to your app > User authentication settings > Edit button > then select read and write under app permissions. After you do that make sure to regenerate your keys and update them in your script, your old keys will still only have read permission.
For your second question, everything used in the video is free. 👍
Hi, Where can I contact you ?
hello, dm the twitter account and I will respond there. Thanks,
Do you have the free version of X?
As of the time of writing this comment, the developer account is free and the bot is still running. You have the option to upgrade a developer account, but the free one offers the ability to post a couple times a day.
@@georgewiggam4292images too?
For my case, I met "tweepy.errors.Forbidden: 403 Forbidden" while I using "media = client_v1.simple_upload(filename=media_path)", looks it can not support media upload now.
I tried updated all keys, it's worked, good job & thanks a lot.
can i contact you