properly define urls
This commit is contained in:
parent
7bbb113f92
commit
e0cb4118f8
11 changed files with 12 additions and 12 deletions
|
|
@ -31,7 +31,7 @@ class RegionsjobBrowser(PagesBrowser):
|
|||
advert_page = URL('emplois/(?P<_id>.*)\.html', AdvertPage)
|
||||
|
||||
def __init__(self, website, *args, **kwargs):
|
||||
self.BASEURL = 'http://%s' % website
|
||||
self.BASEURL = 'http://%s/' % website
|
||||
PagesBrowser.__init__(self, *args, **kwargs)
|
||||
|
||||
def search_job(self, pattern='', fonction='', secteur='', contract='',
|
||||
|
|
@ -61,5 +61,5 @@ class RegionsjobBrowser(PagesBrowser):
|
|||
|
||||
def get_job_advert(self, _id, advert):
|
||||
splitted_id = _id.split('#')
|
||||
self.BASEURL = 'http://www.%s.com' % splitted_id[0]
|
||||
self.BASEURL = 'http://www.%s.com/' % splitted_id[0]
|
||||
return self.advert_page.go(_id=splitted_id[1]).get_job_advert(obj=advert)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue