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()