after so many tutorials and headache the only tutorial that works, subscribed and liked could you please create another video on how to post an image using a script thanks
You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here
You can, but not in the free version. In the old days, it was free. Unfortunately, it is a pay service now. Check this out: developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api.
@@madtc74(bro is still alive in comment section) yea i read the doc already 😭, btw how can i reach you for my doubts thou , please i could use ur help for my project :(
Hi, i have recently created a developer account in twitter for my project and i am using the free version . My project is design and implement an API that facilitate the posting of AI-curated content on twitter. Additionally,devise methods for conducting post engagement analysis to measure the performance and impact of the content after it has been posted using the API. So is it possible with my free version and can you please upload a video based on above.
Check out this video on how to post images to twitter: . What AI are you wanting to use to post AI art? They should have documentation on it. Anyway, the attached video should be able to get you started on the twitter end.
@@madtc74 Thank you , great tutorial and the code for posting images and text is working for me. Can you suggest me how to getting the post engagement analysis (like,comments etc) data after posting and how to add AI generated images and text instead of manual way .
Thank you sir finally a simple tutorial, could you help me too, 1.How would i get the data of tweet by its id, 2.i know i need paid version, but which version or access level. if you can guide me, will help me a lot Thank you
Looks like we need the basic plan. I am not going to pay $100 month for it. hiding the password video at ua-cam.com/video/njMMhJz3X4g/v-deo.html using different connections is here ua-cam.com/video/DdPPSUUhkfk/v-deo.html To get you started and answer your question you can try the below code: def twitConnection_v1(creds): #Define Keys consumer_key = creds['twitter']['consumer_key'] consumer_secret = creds['twitter']['consumer_secret'] # Access: access_token = creds['twitter']['access_token'] access_secret = creds['twitter']['access_secret']
return tweepy.API(auth) creds = yaml.load(open('social_credentials.yml'), Loader=yaml.FullLoader) client_v1 = twitConnection_v1(creds) then in your IDE you can type "client_v1." After the "." you can wait, and you will see a list of commands that you can use with client_v1. for example, this works for ID: id = "number_here" user = client_v1.get_user(id=id) print(f"user id {id} is {user.name}.") I tried to run a few commands, but I only have the free version. 453 - You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: developer.twitter.com/en/portal/product
Thanks Man. Those API Specs were designed to be confusing! Appreciate you!
glad it helped.
This was incredibly helpful even one year later. Works like a f*cking charm
glad it helps
after so many tutorials and headache the only tutorial that works, subscribed and liked could you please create another video on how to post an image using a script thanks
Sure I will write one up shortly for you. I probably won't get to it until this weekend.
check this video out to post images to twitter or X: ua-cam.com/video/DdPPSUUhkfk/v-deo.html
Thank you for making such a concise video on this. This helped tremendously.
no problem. I am glad it helped.
Very helpful, Thank you !
@@sohamsinha3555 glad it helped you out.
Work like a charm! Thank you.
No problem. I am glad it helped.
Sir, will we be able to upload images as an input here? if so what is the function name that we have to use?
I have a video on it already here: ua-cam.com/video/DdPPSUUhkfk/v-deo.html
Thank you. Other tutorials did not work for some reason.
Things change overtime, so you may have looked at an older video.
You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here
yes
Wow, Finally a real working video!! Also Can we search certain tweets? In that free API? If possible please share or do a video :)
You can, but not in the free version. In the old days, it was free. Unfortunately, it is a pay service now. Check this out: developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api.
@@madtc74(bro is still alive in comment section) yea i read the doc already 😭, btw how can i reach you for my doubts thou , please i could use ur help for my project :(
@@billyhargrove2355 hit me up in PM on twitter or X.
@@madtc74 sure! Thanks:)
no problem
They now require callback uri / redirect url in the user authentication settings. How do I set that up?
did you try localhost?
wooooow! check!!! thanks!!! 🚀
no problem - glad you liked it.
Awesome! Thank you, very useful chatgpt failed to tell me to select public client.
@@ennriqe glad it worked out for you. ChatGpt not bad, but you usually have to tweak what they write to work for your use case.
Great stuff. Thank you,
Glad you enjoyed it!
Hi, i have recently created a developer account in twitter for my project and i am using the free version . My project is design and implement an API that facilitate the posting of AI-curated content on twitter. Additionally,devise methods for conducting post engagement analysis to measure the performance and impact of the content after it has been posted using the API.
So is it possible with my free version and can you please upload a video based on above.
Check out this video on how to post images to twitter: . What AI are you wanting to use to post AI art? They should have documentation on it. Anyway, the attached video should be able to get you started on the twitter end.
@@madtc74 Thank you , great tutorial and the code for posting images and text is working for me. Can you suggest me how to getting the post engagement analysis (like,comments etc) data after posting and how to add AI generated images and text instead of manual way .
I have not looked into it. I would need to read the API. I will get back with you.
I tried tweet is not getting uploaded can you suggest me
I need more information on what you are doing and where your code is failing to assist.
Is there free plan currently? I only see 100$ and 5000$ plans.
scroll down on this link: developer.twitter.com/en/docs/twitter-api. You will see a free version.
why does it keep saying unauthorized 401
it is telling you that there is something wrong with your credentials.
@@madtc74 oh thx, ill have to regenerate keys ig
@@madtc74 i double checked, same issue! please make a video for 2024, i cant find it anywhere! it would be of great help MadTC.
NVM, TRIED IT AGAIN AND IT WORKED, SUPER HAPPY
@@zairalaraib glad it worked for you this time.
Thank you sir finally a simple tutorial,
could you help me too,
1.How would i get the data of tweet by its id,
2.i know i need paid version, but which version or access level.
if you can guide me, will help me a lot
Thank you
I will take a look at it this weekend and shoot a video for it.
Looks like we need the basic plan. I am not going to pay $100 month for it.
hiding the password video at ua-cam.com/video/njMMhJz3X4g/v-deo.html
using different connections is here ua-cam.com/video/DdPPSUUhkfk/v-deo.html
To get you started and answer your question you can try the below code:
def twitConnection_v1(creds):
#Define Keys
consumer_key = creds['twitter']['consumer_key']
consumer_secret = creds['twitter']['consumer_secret']
# Access:
access_token = creds['twitter']['access_token']
access_secret = creds['twitter']['access_secret']
auth = tweepy.OAuth1UserHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_secret)
return tweepy.API(auth)
creds = yaml.load(open('social_credentials.yml'), Loader=yaml.FullLoader)
client_v1 = twitConnection_v1(creds)
then in your IDE you can type "client_v1." After the "." you can wait, and you will see a list of commands that you can use with client_v1.
for example, this works for ID:
id = "number_here"
user = client_v1.get_user(id=id)
print(f"user id {id} is {user.name}.")
I tried to run a few commands, but I only have the free version.
453 - You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: developer.twitter.com/en/portal/product
thanks for the video, "i got an error. 401 unauthorised"
Check your API keys. You could have mistyped them.