Correciones para deteccion de anuncios dados de baja.
This commit is contained in:
parent
df07497125
commit
3bbe7475e2
2 changed files with 4 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ class CapturingTask:
|
||||||
self._check_data()
|
self._check_data()
|
||||||
return
|
return
|
||||||
|
|
||||||
elif Refresher.dead_ad_checker(self.html):
|
elif Refresher.dead_ad_checker(attack.get_text()):
|
||||||
self._update_status('Dead ad')
|
self._update_status('Dead ad')
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,9 @@ def UrlAttack_test(url):
|
||||||
attack.attack()
|
attack.attack()
|
||||||
|
|
||||||
print(attack.get_status_code())
|
print(attack.get_status_code())
|
||||||
|
print(attack.success)
|
||||||
print(attack.get_response())
|
print(attack.get_response())
|
||||||
|
print(attack.get_text())
|
||||||
|
|
||||||
|
|
||||||
UrlAttack_test('https://www.idealista.com/inmueble/40402493/')
|
UrlAttack_test('https://www.idealista.com/inmueble/82810718/')
|
||||||
Loading…
Add table
Add a link
Reference in a new issue