Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tweet_mode=extended for statuses_lookup #840

Closed
vchrisb opened this issue Feb 3, 2017 · 15 comments
Closed

tweet_mode=extended for statuses_lookup #840

vchrisb opened this issue Feb 3, 2017 · 15 comments
Labels
Improvement This is regarding an improvement to an existing feature

Comments

@vchrisb
Copy link

vchrisb commented Feb 3, 2017

I used statuses_lookup to get specific tweets.
But with a recent change of Twitter to have also extended tweets does the REST API only return a compacted version for these tweets.

The Twitter API now supports a parameter tweet_mode=extended to return not only the compacted version but also the extended one.

#785 does reference that it is currently not possible to use this parameter with statuses_lookup

What needs to be changed to add tweet_mode=extended support to statuses_lookup?

walmsley added a commit to walmsley/tweepy that referenced this issue Sep 11, 2017
@walmsley
Copy link
Contributor

I've submitted a PR to resolve this: #926 - not sure who's maintaining this repo, but hope the change gets accepted soon!

@DmonUnl
Copy link

DmonUnl commented Oct 14, 2017

please let this be fixed <3
I have a large batch of tweets to pull which i assume.
statuses_lookup takes some time but if extended mode isn't ready i'd have to change my code and get it done one at a time via: api.get_status(798508477572222976,tweet_mode='extended') which is painstakingly slow

@zeeraktalat
Copy link

I think @Aaron1011 is maintaining but don't know.

@BigMistake
Copy link

I also have this problem. Is there any chance of an update on this?

@shaharyar2643
Copy link

I'm also having the same problem. Is there a way around to have extended mode in api.statuses_lookcup

@mjs2020
Copy link

mjs2020 commented Mar 31, 2018

Until this PR is reviewed/approved if you need to use @walmsley 's branch you can install it in your project with: pip install git+https://github.com/walmsley/tweepy.git@patch-1 (kudos @walmsley for the work, it saved me a lot of time today)

@lwahedi
Copy link

lwahedi commented May 13, 2018

@walmsley 's branch doesn't install with the latest pip. I just created a pull request to change the setup.py file so that it should work, as per here:
https://stackoverflow.com/questions/25192794/no-module-named-pip-req

In the meantime, if you have pip 10 you can download his fix at
`pip install git+https://github.com/lwahedi/tweepy.git@master

@jalperin
Copy link

Is there anything more to getting this fix than running that line of code, @lwahedi? I ran it, but the tweet_mode param is not yet visible...

@lwahedi
Copy link

lwahedi commented Jun 25, 2018

@jalperin In the terminal/Bash, first pip uninstall tweepy, then run the above in terminal. Otherwise you'll have two tweepy installs and the original will probably get imported instead when you try to use it.

sam-s pushed a commit to sam-s/tweepy that referenced this issue Jul 5, 2018
@jason-lange
Copy link

jason-lange commented Oct 21, 2018

Hi, I tried to install this package using what I understood of the guidance from @lwahedi . I uninstalled tweepy and entered in terminal:
pip install git+https://github.com/lwahedi/tweepy.git@master
But this gets me an error.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun
at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Command "git clone -q https://github.com/lwahedi/tweepy.git
/private/var/folders/dv/qc9vyx051kbcfy7f8zszfz8c0000gn/T/pip-req-build-_mdbezem" failed with
error code 1 in None
Has the link for that package changed?

@mjs2020
Copy link

mjs2020 commented Oct 21, 2018

@jason-lange looks like a problem on your setup, perhaps this?

@jason-lange
Copy link

@mjs2020 that did it. Many thanks!

@Harmon758
Copy link
Member

This should now be resolved in 3.7.0 with c997ee7 (#926).

@Harmon758 Harmon758 added the Improvement This is regarding an improvement to an existing feature label Apr 24, 2019
@francis-de-ladu
Copy link

francis-de-ladu commented May 27, 2020

The doc is not up to date about this issue, even if it's fixed; the tweet_mode attribute is not listed as a valid argument.

http://docs.tweepy.org/en/v3.8.0/api.html#timeline-methods

@Harmon758
Copy link
Member

Tweepy documentation for API methods does not include tweet_mode as an attribute for each applicable method.
Instead, there is a designated section covering extended Tweets.
This is correspondent with how Twitter's own API documentation handles documentation for the attribute, as otherwise, there would be a multitude of methods with the same repeated documentation of the attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement This is regarding an improvement to an existing feature
Projects
None yet
Development

No branches or pull requests