]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 11 Jul 2023 02:53:55 +0000 (04:53 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 11 Jul 2023 03:07:18 +0000 (05:07 +0200)
- more generic scan for possible linked/blocked instances

fba/networks/lemmy.py

index ad0385e5e0daf07b5cbfb1c2e6520961fb796bf5..fc4def05bfdbea9af46b5e55032ff1f2f9b49bfd 100644 (file)
@@ -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)