mirror of https://github.com/CIRCL/lookyloo
chg: Fix mypy, bump deps
parent
a0c906d3dc
commit
b1034739ad
|
@ -111,9 +111,12 @@ class Lookyloo():
|
||||||
else:
|
else:
|
||||||
self.vt.url_lookup(ct.root_hartree.har.first_url, force)
|
self.vt.url_lookup(ct.root_hartree.har.first_url, force)
|
||||||
|
|
||||||
def get_modules_responses(self, capture_dir: Path) -> Dict:
|
def get_modules_responses(self, capture_dir: Path) -> Optional[Dict]:
|
||||||
ct = self._load_pickle(capture_dir / 'tree.pickle')
|
ct = self._load_pickle(capture_dir / 'tree.pickle')
|
||||||
to_return = {}
|
if not ct:
|
||||||
|
self.logger.warning('Unable to get the modules responses unless the tree ({capture_dir}) is cached.')
|
||||||
|
return None
|
||||||
|
to_return: Dict[str, Any] = {}
|
||||||
if hasattr(self, 'vt') and self.vt.available:
|
if hasattr(self, 'vt') and self.vt.available:
|
||||||
to_return['vt'] = {}
|
to_return['vt'] = {}
|
||||||
if ct.redirects:
|
if ct.redirects:
|
||||||
|
|
|
@ -305,7 +305,7 @@ publicsuffix2 = "^2.20191221"
|
||||||
six = "^1.14.0"
|
six = "^1.14.0"
|
||||||
|
|
||||||
[package.source]
|
[package.source]
|
||||||
reference = "1d7f7a93aa1a216672e32aa3c494ecf2ed865c07"
|
reference = "7ed43558d8be42e5ec8e114ba6c5714548a2fec4"
|
||||||
type = "git"
|
type = "git"
|
||||||
url = "https://github.com/viper-framework/har2tree.git"
|
url = "https://github.com/viper-framework/har2tree.git"
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -872,7 +872,7 @@ scrapy = "^1.8.0"
|
||||||
scrapy-splash = "^0.7.2"
|
scrapy-splash = "^0.7.2"
|
||||||
|
|
||||||
[package.source]
|
[package.source]
|
||||||
reference = "061bf90327a6052801416f786f544c95b310dec2"
|
reference = "5e973cd2d4539a6787f7ad42f03e109ed693aeb9"
|
||||||
type = "git"
|
type = "git"
|
||||||
url = "https://github.com/viper-framework/ScrapySplashWrapper.git"
|
url = "https://github.com/viper-framework/ScrapySplashWrapper.git"
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
Loading…
Reference in New Issue