How to get an image from a tweet using tweepy

Xodarap

If I look at this tweet, I can see that images are clearly attached. Yet I get the following:

>>> status = api.get_status(1275955989322162177, include_entities = True)
>>> status.entities
{'hashtags': [], 'symbols': [], 'user_mentions': [], 'urls': [{'url': 'https:///Ofq2EYjEPA', 'expanded_url': 'https://twitter.com/i/web/status/1275955989322162177', 'display_url': 'twitter.com/i/web/status/1…', 'indices': [116, 139]}]}

As you can see, there are no images. What am I doing wrong?

Xodarap

It turns out that I needed to use the following flag:

status = api.get_status(1275955989322162177, include_entities = True, tweet_mode='extended')

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to get full tweet text in retweets (not using tweepy!)?

How to get the tweet id for the tweet generated using tweepy library's update_status method

Python: Tweepy get location from each tweet

Getting a tweet id from a tweet link using Tweepy

How to find the language of a Tweet using Tweepy?

How to store only the text of tweet using Tweepy

Get the last tweet with tweepy

A way to get image from A Tweet

How to stream tweets from a specified user (only stream when the tweet is published by this user) using tweepy

optimum way to get tweets before specific tweet using tweepy

Get Tweet Id using Tweepy TwitterV2

Tweepy : How to get user id who liked(fav) the specified tweet

How do I get the number of likes on a tweet via tweepy?

get tweet when tagged in Tweepy

How to tweet an image using PHP from my website?

How do I specify language of tweet when using tweepy?

How to only print the text of a tweet using Tweepy ? ( Python 3 )

How do i reply to a certain tweet using Tweepy?

Send Tweet with Variable using tweepy

Python tweepy create_tweet get created tweet's id

Getting additional image urls (i.e. not just first) from tweet with tweepy and python

Post Tweet with YouTube Video URL using Tweepy

Twitter bot using tweepy failed to tweet

Query for Tweet within time interval using tweepy

Using Twython or Tweepy to check if a Tweet is a reply?

Sharing a Tweet through DM using TweePy

How to get the content of a tweet using web scraping

How to verify Tweet with tweepy is geolocating/accepting coordinates

SQL Query : How to Get tweet from following?