From: Roland Häder Date: Tue, 11 Jul 2023 02:53:55 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7eb335f40b271e663535e0142b54621e516de305;p=fba.git Continued: - more generic scan for possible linked/blocked instances --- 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)