projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a0e6e5
)
Update examples/API_v2/get_liked_tweets.py
author
Suhem Parack
<sparack@gmail.com>
Tue, 1 Mar 2022 20:31:19 +0000
(12:31 -0800)
committer
GitHub
<noreply@github.com>
Tue, 1 Mar 2022 20:31:19 +0000
(12:31 -0800)
Co-authored-by: Harmon <Harmon758@gmail.com>
examples/API_v2/get_liked_tweets.py
patch
|
blob
|
blame
|
history
diff --git
a/examples/API_v2/get_liked_tweets.py
b/examples/API_v2/get_liked_tweets.py
index 8bd33a793e072442d0edb9ae3762ee1951b4bb44..a99bbf1a608efdc926d3f0feced57204c753f858 100644
(file)
--- a/
examples/API_v2/get_liked_tweets.py
+++ b/
examples/API_v2/get_liked_tweets.py
@@
-10,8
+10,8
@@
client = tweepy.Client(bearer_token)
# Replace User ID
id = '2244994945'
-# By default the Tweet ID and
Tweet text are returned. If you want additional fields, use the appropriate
-#
fields and expansions
+# By default the Tweet ID and
text are returned. If you want additional fields,
+#
request them using the tweet_fields parameter
tweets = client.get_liked_tweets(id=id, tweet_fields=['context_annotations','created_at'])
for tweet in tweets.data: