From 86f5180ddac723448134f38b7b06dee9d538dd72 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 1 Aug 2024 07:19:34 +0300 Subject: [PATCH] Feat(robots): Report robot being used --- bkmk-add.py | 1 + check_urls.py | 1 + check_urls_db.py | 1 + get_url.py | 1 + 4 files changed, 4 insertions(+) diff --git a/bkmk-add.py b/bkmk-add.py index f268277..239ce4e 100755 --- a/bkmk-add.py +++ b/bkmk-add.py @@ -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 diff --git a/check_urls.py b/check_urls.py index ecf8ad6..0be8f56 100755 --- a/check_urls.py +++ b/check_urls.py @@ -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:]: diff --git a/check_urls_db.py b/check_urls_db.py index 16bcc8a..0acf33d 100755 --- a/check_urls_db.py +++ b/check_urls_db.py @@ -68,6 +68,7 @@ def run(): storage = storage() from robots import robot + print("Using", robot) robot = robot(log) if report_stats: diff --git a/get_url.py b/get_url.py index 2372367..72046fc 100755 --- a/get_url.py +++ b/get_url.py @@ -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] -- 2.39.5