From eba9539ceb5d8c5875a00af095cd78c85d0bd170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20van=20den=20Hoek?= Date: Sat, 11 Oct 2025 23:16:21 +0200 Subject: [PATCH] fix #47 (Couldn't get KEY_BYTE indices) --- twitter_openapi_python/twitter_openapi_python/tid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitter_openapi_python/twitter_openapi_python/tid.py b/twitter_openapi_python/twitter_openapi_python/tid.py index 217c699..668f07e 100644 --- a/twitter_openapi_python/twitter_openapi_python/tid.py +++ b/twitter_openapi_python/twitter_openapi_python/tid.py @@ -12,6 +12,6 @@ def get_tid(): home_page_response = bs4.BeautifulSoup(home_page.content, "html.parser") ondemand_file_url = get_ondemand_file_url(response=home_page_response) ondemand_file = session.get(url=ondemand_file_url) # type: ignore - ondemand_file_response = bs4.BeautifulSoup(ondemand_file.content, "html.parser") + ondemand_file_response = ondemand_file.text ct = ClientTransaction(home_page_response=home_page_response, ondemand_file_response=ondemand_file_response) return ct