git @ Cat's Eye Technologies yastasoti / f067a60
Continue to clean up. Chris Pressey 1 year, 10 months ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
6969 delay_between_fetches = 0
7070
7171 class LinkTraverser(object):
72 def __init__(self, links, article_root=None, missing_only=False, ignore_urls=None):
72 def __init__(self, links, article_root=None, ignore_urls=None):
7373 self.links = links
7474 self.article_root = article_root
7575 self.missing_only = missing_only
121121
122122
123123 class LinkArchiver(LinkTraverser):
124 def __init__(self, links, dest_dir, **kwargs):
124 def __init__(self, links, dest_dir, missing_only=False, **kwargs):
125125 super().__init__(links, **kwargs)
126126 self.dest_dir = dest_dir
127 self.missing_only = missing_only
127128
128129 def handle_link(self, url):
129130 dirname, filename = url_to_dirname_and_filename(url)
183184 else:
184185 traverser = LinkChecker(links,
185186 article_root=options.article_root,
186 missing_only=options.archive_missing_only,
187187 ignore_urls=options.ignore_urls,
188188 )
189189