From 7eb335f40b271e663535e0142b54621e516de305 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 11 Jul 2023 04:53:55 +0200 Subject: [PATCH] Continued: - more generic scan for possible linked/blocked instances --- fba/networks/lemmy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fba/networks/lemmy.py b/fba/networks/lemmy.py index ad0385e..fc4def0 100644 --- a/fba/networks/lemmy.py +++ b/fba/networks/lemmy.py @@ -143,7 +143,7 @@ def fetch_blocks(domain: str, nodeinfo_url: str) -> list: doc = bs4.BeautifulSoup(response.text, "html.parser") logger.debug("doc[]='%s'", type(doc)) - headers = doc.findAll("h5") + headers = doc.findAll("div", {"class": "home-instances container-lg"}) found = None logger.debug("Search in %d header(s) ...", len(headers)) for header in headers: @@ -219,7 +219,7 @@ def fetch_instances(domain: str, origin: str) -> list: doc = bs4.BeautifulSoup(response.text, "html.parser") logger.debug("doc[]='%s'", type(doc)) - headers = doc.findAll("h5") + headers = doc.findAll("div", {"class": "home-instances container-lg"}) logger.debug("Checking %d headers ...", len(headers)) for header in headers: logger.debug("header[%s]='%s'", type(header), header) -- 2.39.5