Resolve warnings of bs4 library

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
pull/3187/head
Emmanuel Ferdman 2025-05-09 00:25:06 -07:00
rodzic 8df61f5eaa
commit feb48ad11f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0CF84597DD87A9FF
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -309,10 +309,10 @@ def extract_json_as_string(content, json_filter, ensure_is_ldjson_info_type=None
soup = BeautifulSoup(content, 'html.parser')
if ensure_is_ldjson_info_type:
bs_result = soup.findAll('script', {"type": "application/ld+json"})
bs_result = soup.find_all('script', {"type": "application/ld+json"})
else:
bs_result = soup.findAll('script')
bs_result += soup.findAll('body')
bs_result = soup.find_all('script')
bs_result += soup.find_all('body')
bs_jsons = []
for result in bs_result: