From 6c0e5811358c6578cdb03014d57b71fc7ce4b727 Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Thu, 20 Jun 2024 15:40:18 +0800 Subject: [PATCH] fix regex match group --- utils/tweet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/tweet.py b/utils/tweet.py index 755029d..b2f1e9e 100644 --- a/utils/tweet.py +++ b/utils/tweet.py @@ -158,7 +158,7 @@ class ProcessTweet: async def _fetch_tweet(self) -> TweetInfo: match = x_url_regex.match(self._url) assert match, f"Invalid URL: {self._url}" - auther_id, tweet_id = match.group() + auther_id, tweet_id = match.groups() return await fetch_json(self._httpx_client, vx_api_url.format(auther_id, tweet_id)) @property