From 9c8f44f4ac88ba266ee73c13e5f0effdce599dd1 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 20 Nov 2023 03:00:06 +0300 Subject: [PATCH] Feat(check_url.py): Print "Moved", "Size", "Md5" --- check_url.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/check_url.py b/check_url.py index 1c51481..15a6d33 100755 --- a/check_url.py +++ b/check_url.py @@ -54,16 +54,26 @@ def run(): else: print("""\ - URL: %s Title: %s + URL: %s LastModified: %s + Moved: %s + Size: %s + Md5: %s IconURI: %s Icon: %s Charset: %s """ % ( - bookmark.href, getattr(bookmark, 'real_title', ''), - strftime(bookmark.last_modified), bookmark.icon_href, - bookmark.icon, bookmark.charset)) + getattr(bookmark, 'real_title', None) + or getattr(bookmark, 'title', None), + bookmark.href, + strftime(bookmark.last_modified), + getattr(bookmark, 'moved', None), + getattr(bookmark, 'size', None), + getattr(bookmark, 'md5', None), + bookmark.icon_href, bookmark.icon, bookmark.charset, + ) + ) robot.stop() log.close() -- 2.39.5