return {}
for header in doc.find_all("h3"):
- for line in header.find_next_siblings("table")[0].find_all("tr")[1:]:
- header_text = header.text
- if header_text in translations:
- header_text = translations[header_text]
- if header_text in blocks:
+ header_text = header.text
+ if header_text in translations:
+ header_text = translations[header_text]
+ if header_text in blocks:
+ for line in header.find_next_siblings("table")[0].find_all("tr")[1:]:
blocks[header_text].append(
{
"domain": line.find("span").text,