chg: depth from UI is a string...

pull/79/head
Raphaël Vinot 2020-06-29 19:23:16 +02:00
parent ce6deabdad
commit 41acc544ef
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ class Lookyloo():
else:
ua = user_agent
if depth > int(self.get_config('max_depth')): # type: ignore
if int(depth) > int(self.get_config('max_depth')): # type: ignore
self.logger.warning(f'Not allowed to scrape on a depth higher than {self.get_config("max_depth")}: {depth}')
depth = int(self.get_config('max_depth')) # type: ignore
items = crawl(self.splash_url, url, cookies=cookies, depth=depth, user_agent=ua,