Example: https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/summary.html
How do I retrieve the text “History of #TBT on Twitter” from this tweet? I am using Python.
I want to get retrieve this information from sources such as Fox News, CNN, MSNBC, etc.
There’s no API provided that would enable you to get this card data from a Tweet. You’d have to go to crawl the originating site and grab the contents of the twitter:description or og:description meta tag.
twitter:description
og:description
Thank you for your response!
I found this, does this say you can extract the title of the summary card?
https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/intro-to-tweet-json
Does not seem to be working for me anyway, though.
Yes, if you are using a premium or enterprise API with the URL entity enrichment then you could get that information, but that field is not served from the standard API endpoints.
Thanks for your help, Andy. Do you mind answering this question as well?
I appreciate your expertise.