Does anyone know whether there's a way to retrieve the latest comments posted against an image on Twitpic - I can't find anything in their API. Any suggestions?
Look up the original tweet on twitter. Once you have that, then ask twitter for all of the replies to that tweet. Then just filter out the #person tag and you should more or less have it sorted!
Joe
Related
There is a Twitter user who posts valuable stuff and I want to save his tweets not as text but as images (screenshots) just as you see it on your phone or computer.
I installed python-twitter and tweepy but I didn't find a solution in the docs and neither in communities so far.
Alternatively: Is there another way to save tweets in a kind of pretty, visually appealing way?
Thank you in advance.
With those libraries you can only extract Twitter data. Those aren't image processing libraries. You will have to write your own logic how you want those pictures displayed.
Look into Pillow.
I usually use this site called tweetcyborg.com It converts any tweet into an image.
I figured it out. Using Selenium Webdriver to open the Twitter account page in the browser, then scrape the tweets and use a screenshot tool to make an image. This looping through all tweets.
I don't exactly know, when I like a tweet in Twitter, who can see it. Is it all of my followers? Or just a fraction of them will see the posts I liked? For instance, in the case of "mention" all of my followers will see my mentions, or for "reply" all the people who follow me and the receipant of my reply will see it. But I couldn't find anything about those who can see my likes when I googled it.
In other word, if 100 people are following me, do all of them see my likes in Twitter?
If they look at the tweet in particular, everyone who has not blocked or silenced you. That can be accessed via the API too.
Your likes are public. Just add /likes to the end of your user URL.
For example, you can see all of mine at https://twitter.com/edent/likes
Anyone logged in to Twitter can see your likes unless you have blocked them.
Whether your friends see your like in their timeline depends on Twitter's algorithm.
I understand you can get the specific url of a tweet using the Twitter API by creating a url like this
https://twitter.com/username/status/tweet-id
However, is it possible to get an image of a tweet?
I can get media images, but those are just images that people posted in the tweet. I want to know if it is possible to get an image of the tweet itself.
Twitter's API includes the ability to do this with oembed.
https://dev.twitter.com/rest/reference/get/statuses/oembed
See https://opensourcelibs.com/lib/tweets-as-an-image
This project provides an API for downloading tweets as images: https://tweets-as-an-image.herokuapp.com/tweet?twitterHandle={your_twitter_handle}&id={your_tweet_id}&theme={light_or_dark}&maxwidth={max_width_of_your_tweet_image}&height={height_of_the_image}&lang={language}
Fast forward to 2023 - none of the one above seems to be available anymore.
This library worked flawlessly for me. It is not an web API but works well and has good options:
https://github.com/Xacnio/tweetcapture
You can now get images or screenshots of tweets using the #aissistant handle on twitter.
Retweet any tweet with the comment "#aissistant #image" to get an image.
Retweet any tweet with the comment "#aissistant #screenshot" to get a screenshot.
For other options like converting to memes and jokes check out the handle.
Full disclosure: I am creator of the bot behind the handle.
I am trying to get list of tweet replies using TweetSharp. I actually need complete list of replies of last x tweets so I am using chain process to get list of tweets first and then their replies. Is there anyone else has done the similar thing? Please help me. Thanks
When you retrieve a user's home timeline, replies to the tweets in that timeline are included, and you could pull the replies out that way.
However, the REST API does not appear to provide a method to return all of the replies to an individual tweet.
The streaming API may be more suited to this, but I have not worked with it.
I studied the Twitter API Documentation today. Only find that we could use "Twitter REST API Method: statuses user_timeline" to acquire statuses of a certain user. Retweets are stripped out of the user_timeline for backwards compatibility reasons. If I want retweets included, API Documentation recommend "statuses retweeted_by_me", but retweeted_by_me cannot return the retweets by other users.
I think maybe we can analyse the twitter webpage of a certain user to get his retweets. However is there any elegant way to crawl retweets of a certain user?
Thanks in advance!
This was addressed recently by the Twitter devs. You can now add a include_rts=true to your call to user_timeline. See the full discussion here: http://groups.google.com/group/twitter-development-talk/browse_thread/thread/7a4be385ff549ed0
You want to use the retweeted_to_me API call and then create a union with user_timeline and sort by datetime. It's a little annoying that they don't mix the stream for you.
Call statuses/user_timeline for the specific user then for each status you will have to call either statuses/id/retweeted_by or statuses/retweets.
http://apiwiki.twitter.com/Twitter-REST-API-Method:-GET-statuses-id-retweeted_by
http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-retweets
You have to manually use GET statuses/retweets/:id for every Tweet from the use_timeline.