mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-27 00:05:27 +02:00
debugging2
This commit is contained in:
@@ -64,11 +64,6 @@ def archive_links(out_dir, links, export_path, resume=None):
|
|||||||
def archive_link(out_dir, link, overwrite=False):
|
def archive_link(out_dir, link, overwrite=False):
|
||||||
"""download the DOM, PDF, and a screenshot into a folder named after the link's timestamp"""
|
"""download the DOM, PDF, and a screenshot into a folder named after the link's timestamp"""
|
||||||
|
|
||||||
if not os.path.exists(out_dir):
|
|
||||||
os.makedirs(out_dir)
|
|
||||||
with open(os.path.join(out_dir, 'test.txt'), 'w') as f:
|
|
||||||
f.write('ffuuuuuuuuck')
|
|
||||||
|
|
||||||
link = {**parse_json_link_index(out_dir), **link}
|
link = {**parse_json_link_index(out_dir), **link}
|
||||||
log_link_archive(out_dir, link)
|
log_link_archive(out_dir, link)
|
||||||
|
|
||||||
@@ -418,3 +413,5 @@ def log_link_archive(out_dir, link):
|
|||||||
))
|
))
|
||||||
if link['type']:
|
if link['type']:
|
||||||
print(' i Type: {}'.format(link['type']))
|
print(' i Type: {}'.format(link['type']))
|
||||||
|
|
||||||
|
print(' {} ({})'.format(out_dir, 'exists' if update_existing else 'created'))
|
||||||
|
Reference in New Issue
Block a user