properly define urls

This commit is contained in:
Bezleputh 2015-01-19 10:24:53 +01:00 committed by Romain Bignon
commit e0cb4118f8
11 changed files with 12 additions and 12 deletions

View file

@ -23,7 +23,7 @@ from .pages import CityListPage, HousingListPage, HousingPage
class LeboncoinBrowser(PagesBrowser):
BASEURL = 'http://www.leboncoin.fr'
BASEURL = 'http://www.leboncoin.fr/'
city = URL('ajax/location_list.html\?city=(?P<city>.*)&zipcode=(?P<zip>.*)', CityListPage)
search = URL('(?P<type>.*)/offres/(?P<region>.*)/occasions/\?ps=(?P<ps>.*)&pe=(?P<pe>.*)&ros=(?P<ros>.*)&location=(?P<location>.*)&sqs=(?P<sqs>.*)&sqe=(?P<sqe>.*)&ret=(?P<ret>.*)&f=(?P<advert_type>.*)',
'(?P<_type>.*)/offres/(?P<_region>.*)/occasions.*?',