[pap] exclude adverts from other websites
This commit is contained in:
parent
6f5f41fe57
commit
05a2a8cc9c
1 changed files with 3 additions and 0 deletions
|
|
@ -63,6 +63,9 @@ class SearchResultsPage(HTMLPage):
|
|||
class item(ItemElement):
|
||||
klass = Housing
|
||||
|
||||
def condition(self):
|
||||
return Regexp(Link('./div[@class="header-annonce"]/a'), '/annonces/(.*)', default=None)(self)
|
||||
|
||||
obj_id = Regexp(Link('./div[@class="header-annonce"]/a'), '/annonces/(.*)')
|
||||
obj_title = CleanText('./div[@class="header-annonce"]/a')
|
||||
obj_area = CleanDecimal(Regexp(CleanText('./div[@class="header-annonce"]/a/span[@class="desc"]'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue