[leboncoin] fix search city using zipcode
This commit is contained in:
parent
0096efc556
commit
5741561286
1 changed files with 5 additions and 2 deletions
|
|
@ -35,9 +35,12 @@ class CityListPage(HTMLPage):
|
|||
class item(ItemElement):
|
||||
klass = City
|
||||
|
||||
obj_id = CleanText('./span[@class="zipcode"]')
|
||||
obj_id = Format('%s %s',
|
||||
CleanText('./span[has-class("city")]'),
|
||||
CleanText('./span[@class="zipcode"]'))
|
||||
|
||||
obj_name = Format('%s %s',
|
||||
CleanText('./span[@class="city"]'),
|
||||
CleanText('./span[has-class("city")]'),
|
||||
CleanText('./span[@class="zipcode"]'))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue