diff --git a/changedetectionio/html_tools.py b/changedetectionio/html_tools.py
index 69807f35..42b7f8c9 100644
--- a/changedetectionio/html_tools.py
+++ b/changedetectionio/html_tools.py
@@ -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:
diff --git a/requirements.txt b/requirements.txt
index f4a5c17c..09124611 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -42,7 +42,7 @@ paho-mqtt!=2.0.*
cryptography~=42.0.8
# Used for CSS filtering
-beautifulsoup4
+beautifulsoup4>=4.0.0
# XPath filtering, lxml is required by bs4 anyway, but put it here to be safe.
# #2328 - 5.2.0 and 5.2.1 had extra CPU flag CFLAGS set which was not compatible on older hardware