Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
d60 authored Apr 16, 2024
1 parent 2d2fbf4 commit f28a336
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion twikit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
A Python library for interacting with the Twitter API.
"""

__version__ = '1.5.0'
__version__ = '1.5.1'

from .client import Client
from .community import (Community, CommunityCreator, CommunityMember,
Expand Down
4 changes: 3 additions & 1 deletion twikit/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2462,7 +2462,9 @@ def get_trends(
return []
# Recall the method again, as the trend information
# may not be returned due to a Twitter error.
return self.get_trends(category, count, retry)
return self.get_trends(
category, count, retry, additional_request_params
)

items = entries[-1]['content']['timelineModule']['items']

Expand Down
4 changes: 3 additions & 1 deletion twikit/twikit_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2483,7 +2483,9 @@ async def get_trends(
return []
# Recall the method again, as the trend information
# may not be returned due to a Twitter error.
return await self.get_trends(category, count, retry)
return await self.get_trends(
category, count, retry, additional_request_params
)

items = entries[-1]['content']['timelineModule']['items']

Expand Down

0 comments on commit f28a336

Please sign in to comment.