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