-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit changes the behavior of the command line client so that it can also fetch retweets from a file of tweet_ids. twarc retweets ids.txt > retweets.jsonl This is in addition to the previous behavior where it accepted a tweet id to fetch the retweets for: twarc retweets 20 > retweets.jsonl You can also comma separate them: twarc retweets 20,21 > retweets.jsonl The internal interface to the Twarc.reteets has changed to now accept an iterator of tweet ids. from twarc import Twarc twitter = Twarc() for tweet in twitter.retweets([20, 21]): print(tweet['id_str']) ... If you have been using the retweets method in your code you will want to adjust it to pass in a list of ids rather than the bare ids. Fixes #255
- Loading branch information
Showing
7 changed files
with
41 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ dist | |
twarc.egg-info | ||
.pytest_cache | ||
.vscode | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = '1.9.1' # also in setup.py | ||
__version__ = '1.10.0' # also in setup.py | ||
|
||
from .client import Twarc | ||
from .command import main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters