From faeb34c9feb267db67e363dc9f7f561e5cd46062 Mon Sep 17 00:00:00 2001 From: Suhem Parack Date: Tue, 1 Mar 2022 13:35:03 -0800 Subject: [PATCH] Updated formatting --- examples/API_v2/get_liking_users.py | 5 +++-- examples/API_v2/get_retweeters.py | 5 +++-- examples/API_v2/get_users_followers.py | 5 +++-- examples/API_v2/lookup_tweets_using_tweet_ids.py | 4 ++-- examples/API_v2/lookup_users_using_user_ids.py | 5 +++-- 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/examples/API_v2/get_liking_users.py b/examples/API_v2/get_liking_users.py index 422f385..9721478 100644 --- a/examples/API_v2/get_liking_users.py +++ b/examples/API_v2/get_liking_users.py @@ -10,8 +10,9 @@ client = tweepy.Client(bearer_token) # Replace Tweet ID id = 1441054496931541004 -# By default the user ID, name and username are returned. user_fields can be used -# to specify the additional user data that you want returned for each user e.g. profile_image_url +# By default the user ID, name and username are returned. user_fields can be +# used to specify the additional user data that you want returned for each user +# e.g. profile_image_url users = client.get_liking_users(id, user_fields=["profile_image_url"]) # Print the username and the user's profile image url diff --git a/examples/API_v2/get_retweeters.py b/examples/API_v2/get_retweeters.py index b2116aa..ade644c 100644 --- a/examples/API_v2/get_retweeters.py +++ b/examples/API_v2/get_retweeters.py @@ -10,8 +10,9 @@ client = tweepy.Client(bearer_token) # Replace Tweet ID id = 1441054496931541004 -# By default the user ID, name and username are returned. user_fields can be used -# to specify the additional user data that you want returned for each user e.g. profile_image_url +# By default the user ID, name and username are returned. user_fields can be +# used to specify the additional user data that you want returned for each user +# e.g. profile_image_url users = client.get_retweeters(id, user_fields=["profile_image_url"]) # Print the username and the user's profile image url diff --git a/examples/API_v2/get_users_followers.py b/examples/API_v2/get_users_followers.py index 4554b06..cbdee6a 100644 --- a/examples/API_v2/get_users_followers.py +++ b/examples/API_v2/get_users_followers.py @@ -10,8 +10,9 @@ client = tweepy.Client(bearer_token) # Replace user ID id = 2244994945 -# By default the user ID, name and username are returned. user_fields can be used -# to specify the additional user data that you want returned for each user e.g. profile_image_url +# By default the user ID, name and username are returned. user_fields can be +# used to specify the additional user data that you want returned for each user +# e.g. profile_image_url users = client.get_users_followers(id, user_fields=["profile_image_url"]) # Print the username and the user's profile image url diff --git a/examples/API_v2/lookup_tweets_using_tweet_ids.py b/examples/API_v2/lookup_tweets_using_tweet_ids.py index ed76272..69e7247 100644 --- a/examples/API_v2/lookup_tweets_using_tweet_ids.py +++ b/examples/API_v2/lookup_tweets_using_tweet_ids.py @@ -10,8 +10,8 @@ client = tweepy.Client(bearer_token) # Replace Tweet IDs ids = ["1409935014725177344", "1409931481552543749", "1441054496931541004"] -# 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 Tweet text are returned. If you want additional +# Tweet fields, specify those in tweet_fields tweets = client.get_tweets(ids, tweet_fields=["created_at"]) # Print the Tweet text and the time the Tweet was created diff --git a/examples/API_v2/lookup_users_using_user_ids.py b/examples/API_v2/lookup_users_using_user_ids.py index d285e74..e853950 100644 --- a/examples/API_v2/lookup_users_using_user_ids.py +++ b/examples/API_v2/lookup_users_using_user_ids.py @@ -10,8 +10,9 @@ client = tweepy.Client(bearer_token) # Replace User IDs ids = ['2244994945'] -# By default the user ID, name and username are returned. user_fields can be used -# to specify the additional user data that you want returned for each user e.g. profile_image_url +# By default the user ID, name and username are returned. user_fields can be +# used to specify the additional user data that you want returned for each user +# e.g. profile_image_url users = client.get_users(ids, user_fields=["profile_image_url"]) # Print the username and the user's profile image url -- 2.25.1