pax_global_header 0000666 0000000 0000000 00000000064 13414430553 0014514 g ustar 00root root 0000000 0000000 52 comment=6e2147adbb0d685e8e740a246e0c7f31465f3511
woob-6e2147adbb0d685e8e740a246e0c7f31465f3511-modules-adecco/ 0000775 0000000 0000000 00000000000 13414430553 0022200 5 ustar 00root root 0000000 0000000 woob-6e2147adbb0d685e8e740a246e0c7f31465f3511-modules-adecco/modules/ 0000775 0000000 0000000 00000000000 13414430553 0023650 5 ustar 00root root 0000000 0000000 woob-6e2147adbb0d685e8e740a246e0c7f31465f3511-modules-adecco/modules/adecco/ 0000775 0000000 0000000 00000000000 13414430553 0025066 5 ustar 00root root 0000000 0000000 woob-6e2147adbb0d685e8e740a246e0c7f31465f3511-modules-adecco/modules/adecco/__init__.py 0000664 0000000 0000000 00000001432 13414430553 0027177 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2013 Bezleputh
#
# This file is part of weboob.
#
# weboob 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.
#
# weboob 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 weboob. If not, see .
from .module import AdeccoModule
__all__ = ['AdeccoModule']
woob-6e2147adbb0d685e8e740a246e0c7f31465f3511-modules-adecco/modules/adecco/browser.py 0000664 0000000 0000000 00000005425 13414430553 0027131 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2013 Bezleputh
#
# This file is part of weboob.
#
# weboob 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.
#
# weboob 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 weboob. If not, see .
from weboob.browser import PagesBrowser, URL
from weboob.tools.compat import quote_plus
from .pages import SearchPage, AdvertPage, AdvertsJsonPage
from datetime import date, timedelta
__all__ = ['AdeccoBrowser']
class AdeccoBrowser(PagesBrowser):
BASEURL = 'https://www.adecco.fr'
TIMEOUT = 30
search_page = URL('/resultats-offres-emploi/\?k=(?P.*)&l=(?P.*)&display=50',
'/resultats-offres-emploi/(?P.*)/\?display=50',
SearchPage)
json_page = URL('/AdeccoGroup.Global/api/Job/AsynchronousJobSearch/', AdvertsJsonPage)
advert_page = URL('/offres-d-emploi/\?ID=(?P<_id>.*)',
'/offres-d-emploi/.*',
AdvertPage)
def call_json(self, params, date_min=None):
self.session.headers.update({"Accept": "application/json, text/javascript, */*; q=0.01",
"X-Requested-With": "XMLHttpRequest"})
return self.json_page.go(data=params).iter_job_adverts(data=params, date_min=date_min)
def search_job(self, pattern=None):
if pattern:
return self.advanced_search_job(job=pattern)
return []
def advanced_search_job(self, publication_date=0, contract_type=None, conty=None, activity_domain=None,
job='', town=''):
params = self.search_page.go(job=quote_plus(job.encode('utf-8')),
town=quote_plus(town.encode('utf-8'))).get_post_params()
if contract_type:
self.page.url += '&employmenttype=%s' % contract_type
if conty:
self.page.url += '&countrysubdivisionfacet=%s' % conty
if activity_domain:
self.page.url += '&industryfacet=%s' % activity_domain
date_min = date.today() - timedelta(days=publication_date) if publication_date > 0 else None
params['filterUrl'] = self.page.url
return self.call_json(params, date_min=date_min)
def get_job_advert(self, _id, advert):
return self.advert_page.go(_id=_id).get_job_advert(obj=advert)
woob-6e2147adbb0d685e8e740a246e0c7f31465f3511-modules-adecco/modules/adecco/favicon.png 0000664 0000000 0000000 00000012156 13414430553 0027226 0 ustar 00root root 0000000 0000000 PNG
IHDR ? ? W_ sBIT|d pHYs od IDAThu?]ξq8!93$EVuMb;I
p/]~H]@@"hpM)R$K%"M-&%qrf8Y{Iy9{gyF\ ܢ"oU
VoU
VoU
VoU 7d(a8SzJNRSD{ 2%TL#@A^X!1ey_җL \cmJƕ0Q(ډޔB^(8Qf<.*|4/ /}OO{RǗ\GTJiTKOʵL<+o$\ORO^ ''rN"3ʇePj(Q(=*XP! }oflVsisZC|Q-JoE8N.Y^^B/Rҗ9@pN7-X8PE 2peVK'$'JGtUdQ7T(}>P&$s3Qբ]JY2ܤ'Y}'`E% hڿ;='=9 \/`FKVB+;S@l NJ&+~xg Xt^2l0V[^C'J֞\ԵRr 1KE=үt22"/KA+W/Jo҇zMI J@74KuDNP+#eYzͨ-]#p!īlV\dB@RHI$]#ي%m#ɥDv,QB"Cw)2@{ :1xt˭'D^MGUWBK\*:=~tڣD,=+''˞`-%7