Retoques menores en geocoder y capturer por problemas de tipos.
This commit is contained in:
parent
c40d39e558
commit
600ff889be
4 changed files with 88 additions and 75 deletions
|
|
@ -32,9 +32,6 @@ class Capturer:
|
|||
|
||||
if task.status == 'Data ready':
|
||||
ad_data = task.get_ad_data()
|
||||
elif Refresher.dead_ad_checker(task.html):
|
||||
task._update_status('Dead ad')
|
||||
continue
|
||||
else:
|
||||
continue
|
||||
|
||||
|
|
@ -80,6 +77,9 @@ class CapturingTask:
|
|||
self._check_data()
|
||||
return
|
||||
|
||||
elif attack.get_status_code() == 301:
|
||||
self._update_status('Dead ad')
|
||||
return
|
||||
else:
|
||||
self.request_failures += 1
|
||||
self._update_status('Fail {}'.format(self.request_failures))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue