print("Using", robot)
robot = robot(log)
+ bookmarks = []
for url in sys.argv[1:]:
bookmark = Bookmark(href=url, add_date=None)
bookmark.parent = None
+ bookmarks.append(bookmark)
robot.check_bookmark(bookmark)
+ robot.stop()
+ log.close()
+
+ for bookmark in bookmarks:
if hasattr(bookmark, 'error'):
print(bookmark.error)
)
)
- robot.stop()
- log.close()
-
if __name__ == '__main__':
run()
checked[href] = object_no
urls_no = urls_no + 1
- try:
- size = size + int(object.size)
- except (AttributeError, TypeError, ValueError):
- pass # Some object does not have a size :(
robot.stop()
+ for object_no in range(objects):
+ object = root_folder.linear[object_no]
+ if object.isBookmark:
+ try:
+ size = size + int(object.size)
+ except (AttributeError, TypeError, ValueError):
+ pass # Some object does not have a size :(
+
if show_pbar:
del pbar
error, redirect_code, redirect_to, headers, content = \
robot.get_url(bookmark, url, True)
+ robot.stop()
if error:
sys.stderr.write(error + '\n')
else:
print(content)
- robot.stop()
-
if __name__ == '__main__':
run()