Skip to content

Commit

Permalink
Merge pull request #657 from DocNow/tweet_edit_expansions
Browse files Browse the repository at this point in the history
Add additional expansions and fields for the new tweet edit related API parameters
  • Loading branch information
igorbrigadir authored Oct 1, 2022
2 parents c65ef7a + 77f0af5 commit 40c2dae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test_twarc.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ def test_hydrate():
for tweet in T.hydrate(iter(ids)):
assert tweet["id_str"]
count += 1
assert count > 90 # may need to adjust as these might get deleted
assert count > 80 # may need to adjust as these might get deleted


@patch("twarc.client.OAuth1Session", autospec=True)
Expand Down
3 changes: 3 additions & 0 deletions twarc/expansions.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
"attachments.poll_ids",
"attachments.media_keys",
"geo.place_id",
"edit_history_tweet_ids",
]


USER_FIELDS = [
"created_at",
"description",
Expand Down Expand Up @@ -62,6 +64,7 @@
"reply_settings",
"source",
"withheld",
"edit_controls",
]

MEDIA_FIELDS = [
Expand Down
2 changes: 1 addition & 1 deletion twarc/version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import platform

version = "2.11.3"
version = "2.12.0"

user_agent = f"twarc/{version} ({platform.system()} {platform.machine()}) {platform.python_implementation()}/{platform.python_version()}"

0 comments on commit 40c2dae

Please sign in to comment.