X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=check_url.py;h=15a6d33c2279bc53b49a1685570f67325207d964;hb=ead79e4438ca8a2b5d7f7211945c1fcb653f2c64;hp=bb13be23a59bead68130405ffd224b12225c14e2;hpb=43c428bf639a603c34669f67989ff5343d2a02d7;p=bookmarks_db.git diff --git a/check_url.py b/check_url.py index bb13be2..15a6d33 100755 --- a/check_url.py +++ b/check_url.py @@ -37,6 +37,7 @@ def run(): from m_lib.flog import makelog log = makelog("check.log") + log.outfile.reconfigure(encoding='utf-8') from robots import robot robot = robot(log) @@ -53,15 +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)) + 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()