Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
cbcb62f2
Commit
cbcb62f2
authored
Dec 01, 2014
by
Joshua Roesslein
Browse files
Remove deprecated trends methods.
parent
a29d2d5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/api.rst
View file @
cbcb62f2
...
...
@@ -540,43 +540,6 @@ Help Methods
:rtype: list of :class:`SearchResult` objects
.. method:: API.trends()
Returns the top ten topics that are currently trending on Twitter. The
response includes the time of the request, the name of each trend, and
the url to the Twitter Search results page for that topic.
:rtype: :class:`JSON` object
.. method:: API.trends_current([exclude])
Returns the current top 10 trending topics on Twitter. The response
includes the time of the request, the name of each trending topic, and
query used on Twitter Search results page for that topic.
:param exclude: |exclude|
:rtype: :class:`JSON` object
.. method:: API.trends_daily([date], [exclude])
Returns the top 20 trending topics for each hour in a given day.
:param date: |date|
:param exclude: |exclude|
:rtype: :class:`JSON` object
.. method:: API.trends_weekly([date], [exclude])
Returns the top 30 trending topics for each day in a given week.
:param date: |date|
:param exclude: |exclude|
:rtype: :class:`JSON` object
List Methods
------------
...
...
tweepy/api.py
View file @
cbcb62f2
...
...
@@ -1163,30 +1163,6 @@ class API(object):
'to'
,
'source'
]
)
@
property
def
trends_daily
(
self
):
""" :reference: https://dev.twitter.com/docs/api/1.1/get/trends/daily
:allowed_param:'date', 'exclude'
"""
return
bind_api
(
api
=
self
,
path
=
'/trends/daily.json'
,
payload_type
=
'json'
,
allowed_param
=
[
'date'
,
'exclude'
]
)
@
property
def
trends_weekly
(
self
):
""" :reference: https://dev.twitter.com/docs/api/1.1/get/trends/weekly
:allowed_param:'date', 'exclude'
"""
return
bind_api
(
api
=
self
,
path
=
'/trends/weekly.json'
,
payload_type
=
'json'
,
allowed_param
=
[
'date'
,
'exclude'
]
)
@
property
def
reverse_geocode
(
self
):
""" :reference: https://dev.twitter.com/rest/reference/get/geo/reverse_geocode
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment