pax_global_header 0000666 0000000 0000000 00000000064 13435444765 0014531 g ustar 00root root 0000000 0000000 52 comment=139760e841ad4875b59fe11e052af1bb56dc06ea
woob-139760e841ad4875b59fe11e052af1bb56dc06ea-modules-manpower/ 0000775 0000000 0000000 00000000000 13435444765 0022770 5 ustar 00root root 0000000 0000000 woob-139760e841ad4875b59fe11e052af1bb56dc06ea-modules-manpower/modules/ 0000775 0000000 0000000 00000000000 13435444765 0024440 5 ustar 00root root 0000000 0000000 woob-139760e841ad4875b59fe11e052af1bb56dc06ea-modules-manpower/modules/manpower/ 0000775 0000000 0000000 00000000000 13435444765 0026270 5 ustar 00root root 0000000 0000000 woob-139760e841ad4875b59fe11e052af1bb56dc06ea-modules-manpower/modules/manpower/__init__.py 0000664 0000000 0000000 00000001513 13435444765 0030401 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2016 Bezleputh
#
# This file is part of a weboob module.
#
# This weboob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This weboob module is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this weboob module. If not, see .
from .module import ManpowerModule
__all__ = ['ManpowerModule']
woob-139760e841ad4875b59fe11e052af1bb56dc06ea-modules-manpower/modules/manpower/browser.py 0000664 0000000 0000000 00000005144 13435444765 0030331 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2016 Bezleputh
#
# This file is part of a weboob module.
#
# This weboob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This weboob module is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this weboob module. If not, see .
from weboob.browser import PagesBrowser, URL
from .pages import SearchPage, AdvertPage
class ManpowerBrowser(PagesBrowser):
BASEURL = 'https://www.manpower.fr'
search_page = URL('/offre-emploi',
'/offre-emploi/(?P.*)', SearchPage)
advert_page = URL('/candidats/detail-offre-d-emploi/(?P<_id>.*).html', AdvertPage)
error_page = URL('/offre-emploi/offre-non-trouvee')
def search_job(self, pattern=None):
return self.call_search(query=pattern)
def call_search(self, query=''):
if not query:
return self.search_page.go().iter_job_adverts()
return self.search_page.go(query=query).iter_job_adverts()
def advanced_search_job(self, job='', place='', contract='', activity_domain=''):
query1 = []
query2 = []
if job != '':
query1.append(job)
if place != '':
_query = place.rsplit('/', 1)
if len(_query) >= 2:
query2.append(_query[-1])
query1.append(_query[0])
if contract != '':
_query = contract.rsplit('/', 1)
if len(_query) >= 2:
query2.append(_query[-1])
query1.append(_query[0])
if activity_domain != '':
_query = activity_domain.rsplit('/', 1)
if len(_query) >= 2:
query2.append(_query[-1])
query1.append(_query[0])
squery1 = '/'.join(query1)
squery2 = ''.join(query2)
if squery2 != '':
query = '%s/%s.html' % (squery1, squery2)
else:
query = squery1
return self.call_search(query=query)
def get_job_advert(self, _id, advert):
self.advert_page.go(_id=_id)
if self.advert_page.is_here():
return self.page.get_job_advert(obj=advert)
return advert
woob-139760e841ad4875b59fe11e052af1bb56dc06ea-modules-manpower/modules/manpower/favicon.png 0000664 0000000 0000000 00000017751 13435444765 0030436 0 ustar 00root root 0000000 0000000 PNG
IHDR @ @ iq pHYs tIME
4?# iTXtComment Created with GIMPd.e bKGD MIDATx[ ~u}}2}!x3QU($(b4JhVc4*6*QDaz>jap1&v{UIUU:_̙3iyĉ4vX$2#?àH$BcziӦMqꩧ/LgAk