]> git.phdru.name Git - bookmarks_db.git/commitdiff
Feat(robots): Report robot being used
authorOleg Broytman <phd@phdru.name>
Thu, 1 Aug 2024 04:19:34 +0000 (07:19 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 1 Aug 2024 04:19:34 +0000 (07:19 +0300)
bkmk-add.py
check_urls.py
check_urls_db.py
get_url.py

index f268277507c759188b6729f604e60502425f4c55..239ce4ecdd3c203c0e5c5527d6db84ff8018ef07 100755 (executable)
@@ -57,6 +57,7 @@ def run():
     bookmark.parent = None
 
     global _robot
+    print("Using", robot)
     _robot = robot(None)
 
     if _robot.check_url(bookmark):  # get real title and last modified date
index ecf8ad62c2042ed4412aa4aa40fcedf028f89d12..0be8f563b7e56917744d89f657e86f3495209f18 100755 (executable)
@@ -41,6 +41,7 @@ def run():
     sys.stdout.reconfigure(encoding='utf-8')
 
     from robots import robot
+    print("Using", robot)
     robot = robot(log)
 
     for url in sys.argv[1:]:
index 16bcc8a293c59f434abc32c91fb1c99f84e7c500..0acf33d7254e3e7f086e5c682254d9730bc288b8 100755 (executable)
@@ -68,6 +68,7 @@ def run():
     storage = storage()
 
     from robots import robot
+    print("Using", robot)
     robot = robot(log)
 
     if report_stats:
index 2372367d48a096977bd6d5cb42843aa95547eb4a..72046fcf99b861952d7643306b536dd677a780e0 100755 (executable)
@@ -21,6 +21,7 @@ def run():
         sys.exit(1)
 
     from robots import robot
+    print("Using", robot)
     robot = robot(sys.stdout.write)
 
     url = sys.argv[1]