diff --git a/twikit/__init__.py b/twikit/__init__.py index 0b7951ba..aaad75ba 100644 --- a/twikit/__init__.py +++ b/twikit/__init__.py @@ -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, diff --git a/twikit/client.py b/twikit/client.py index 70247737..49ddc430 100644 --- a/twikit/client.py +++ b/twikit/client.py @@ -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'] diff --git a/twikit/twikit_async/client.py b/twikit/twikit_async/client.py index 5679e0cf..dc2b2bd0 100644 --- a/twikit/twikit_async/client.py +++ b/twikit/twikit_async/client.py @@ -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']