From f28a336fdbe87458c792a888deecd8c7910a8bf2 Mon Sep 17 00:00:00 2001 From: d60 <94234663+d60@users.noreply.github.com> Date: Wed, 17 Apr 2024 00:18:46 +0900 Subject: [PATCH] Add files via upload --- twikit/__init__.py | 2 +- twikit/client.py | 4 +++- twikit/twikit_async/client.py | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) 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']