Post Images to Twitter / X Using Python!
Vložit
- čas přidán 22. 07. 2024
- In this video, I am going to show you how to post images to Twitter or X using Python. In this example, we are going to use the Tweepy API using Twitter (X) version one and version two API.
gitlab: gitlab.com/MadTcTutorials/pyt...
previous videos in series:
• Connect and Post with ... -- how to post msg to Twitter/X
• Hide Your Password in ... -- how to hide your passwords in Jupyter
Affiliates:
R730: amzn.to/3QWm6mx
CHAPTERS
---------------------------------------------------
00:00 Intro
00:18 Overview of Old Project
01:29 Build Connection Function for API Version One
04:55 Establish Connection
05:55 Updating Old Message
06:07 Identifying File to Post
07:25 Prepare Media File
07:56 Run Some Cells
08:44 Obtain Media ID
09:35 Post Image to (X) Twitter
11:25 Like and Subscribe - Věda a technologie
Hello MadTc Tech, appreciate your excellent tutorial! I enjoy your narrative style: direct to the point, no wasting viewers' time with intros and outros, background music, asking people to like and sub, etc... So, thank you, and liked and sub'd!
I do the "like and subscribe" at the end of videos :)
thanks a ton! works like a charm
@@dorkfactory glad it works for you
Short and to the point, thanks for the amazing tutorial :)
I like to keep these as short as possible.
I've been amature coding for a couple years and never had the code work straight away 😂plus even though I didn't use the key hider I still understood enought from the video to code it out 😮 AMAZING video ! Thanks
thanks. I appreciate that.
when u see non-GenZ, u will surely get what title and thumbnail say :), tysm I wish YT is as sane as it was 5-10 years back, GenZ have ruined social media apps for people who are looking for solutions like these.
glad this helped you out.
great tutorial
Thanks.
thanks for the video it is great. could you make one on how to post videos? i seem to be running into some sort of 5 mb ceiling that i can't get around.
It's a data limit. Please see: developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/overview. This will show you the data limits. Also, are you looking at posting a link to embed the video or actually talking about uploading a video file?
I did find that twitter dev doc, but i didn't know how to use the amplify. I was thinking to upload the video file myself, but I hadn't considered embedding because I don't know how to do it, but maybe it works a lot better? @@madtc74
thanks, i actually found that page as well but didn't know how to use the amplify. I was thinking to just upload video files, but i hadn't considered using links, i don't want the post to appear as a quote though. What would you do?@@madtc74
thanks, i actually found that page as well but didn't know how to use the amplify. I was thinking to just upload video files, but i hadn't considered using links, i don't want the post to appear as a quote though. What would you do?
nevermind, figured out how to embed
Can you suggest me how to getting the post engagement analysis (like,comments etc) data after posting and how to add OpenAI generated images and text instead of manual way .
I will need to read the API. I have not looked into it to be honest with you. I will get back with you.
Ok
I have not forgot about you. Look at this link for twitter: github.com/xdevplatform/Twitter-API-v2-sample-code
Check this out: czcams.com/video/eVJ8I6FeSN4/video.html
@@madtc74 Thank you