mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-27 00:07:16 +00:00
fix: [helper dump_crawler] fix empty dict
This commit is contained in:
parent
5377369032
commit
06ab66ff57
1 changed files with 7 additions and 6 deletions
|
@ -54,6 +54,7 @@ for date in date_range:
|
|||
print(domain)
|
||||
h = HiddenServices(domain, 'onion')
|
||||
item_core = h.get_domain_crawled_core_item()
|
||||
if 'root_item' in item_core:
|
||||
l_pastes = h.get_last_crawled_pastes(item_root=item_core['root_item'])
|
||||
res = h.create_domain_basic_archive(l_pastes)
|
||||
filename = os.path.join(save_path, '{}'.format(domain))
|
||||
|
|
Loading…
Reference in a new issue