]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 2 Jun 2023 21:02:38 +0000 (23:02 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 2 Jun 2023 21:17:59 +0000 (23:17 +0200)
- Firfox version updated
- also check if domain is already registered to avoid lots of requests

config.defaults.json
fetch_bkali.py

index f6de1c0d2a4b69359b7eb799758e7003e92b1b25..bbce48349139cf387129081dc8043f12938258d6 100644 (file)
@@ -3,7 +3,7 @@
     "log_level"         : "info",
     "host"              : "127.0.0.1",
     "port"              : 8069,
-    "useragent"         : "Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Firefox/102.0",
+    "useragent"         : "Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Firefox/113.0",
     "connection_timeout": 30,
     "read_timeout"      : 5,
     "bot_enabled"       : false,
index f09612df3b5a16fce8fb5b140d63689808be2ee6..b245febfd25bfd4e286f10044c37fd42f49b0626 100755 (executable)
@@ -36,10 +36,13 @@ try:
                 print(f"WARNING: entry does not contain 'domain' - SKIPPED!")
                 continue
             elif not validators.domain(entry["domain"]):
-                print(f"WARNING: domain='{entry['domain']}' is {entry['domain']}' is not a valid domain - SKIPPED!")
+                print(f"WARNING: domain='{entry['domain']}' is not a valid domain - SKIPPED!")
                 continue
             elif fba.is_blacklisted(entry["domain"]):
-                # DEBUG: print(f"DEBUG: domain='blacklisted - SKIPPED!")
+                # DEBUG: print(f"DEBUG: domain='{entry['domain']}' is blacklisted - SKIPPED!")
+                continue
+            elif fba.is_instance_registered(entry["domain"]):
+                # DEBUG: print(f"DEBUG: domain='{entry['domain']}' is already registered - SKIPPED!")
                 continue
 
             domains.append(entry["domain"])