import sys
from bkmk_objects import Bookmark
-from Writers.bkmk_wflad import strftime
def run():
print("Moved to: %s" % redirect_to)
else:
- print("""\
-Title: %s
-URL: %s
-LastModified: %s
-Moved: %s
-Size: %s
-Md5: %s
-IconURI: %s
-Icon: %s
-Charset: %s
-""" % (
- 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,
- )
- )
-
with open(output_fname, 'wb') as outfile:
outfile.write(content)