From 5de81ec4b5e211b2355b84cce8600b9ed7b4fb6b Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 27 May 2021 10:57:36 -0500 Subject: [PATCH] Update and improve documentation for API.trends_place --- tweepy/api.py | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index ec7400e..73fed15 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3718,15 +3718,24 @@ class API: The tweet_volume for the last 24 hours is also returned for many trends if this is available. - :param id: The Yahoo! Where On Earth ID of the location to return - trending information for. Global information is available by using - 1 as the WOEID. - :param exclude: Setting this equal to hashtags will remove all hashtags - from the trends list. + Parameters + ---------- + id + The Yahoo! Where On Earth ID of the location to return trending + information for. Global information is available by using 1 as the + WOEID. + exclude + Setting this equal to hashtags will remove all hashtags from the + trends list. - :rtype: :class:`JSON` object + Returns + ------- + :class:`dict` + JSON - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/trends/trends-for-location/api-reference/get-trends-place + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/trends/trends-for-location/api-reference/get-trends-place """ return self.request( 'GET', 'trends/place', endpoint_parameters=( -- 2.25.1