pax_global_header 0000666 0000000 0000000 00000000064 14575653726 0014536 g ustar 00root root 0000000 0000000 52 comment=5f3d558793b537a74480241ac6981479f5938cd3
woob-master-5f3d558793b537a74480241ac6981479f5938cd3-modules-monster/ 0000775 0000000 0000000 00000000000 14575653726 0023531 5 ustar 00root root 0000000 0000000 woob-master-5f3d558793b537a74480241ac6981479f5938cd3-modules-monster/modules/ 0000775 0000000 0000000 00000000000 14575653726 0025201 5 ustar 00root root 0000000 0000000 woob-master-5f3d558793b537a74480241ac6981479f5938cd3-modules-monster/modules/monster/ 0000775 0000000 0000000 00000000000 14575653726 0026670 5 ustar 00root root 0000000 0000000 woob-master-5f3d558793b537a74480241ac6981479f5938cd3-modules-monster/modules/monster/__init__.py 0000664 0000000 0000000 00000001501 14575653726 0030776 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2013 Bezleputh
#
# This file is part of a woob module.
#
# This woob 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 woob 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 woob module. If not, see .
from .module import MonsterModule
__all__ = ['MonsterModule']
woob-master-5f3d558793b537a74480241ac6981479f5938cd3-modules-monster/modules/monster/browser.py 0000664 0000000 0000000 00000003623 14575653726 0030731 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2013 Bezleputh
#
# This file is part of a woob module.
#
# This woob 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 woob 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 woob module. If not, see .
from urllib.parse import quote_plus, urlencode
from woob.browser import PagesBrowser, URL
from .pages import AdvertPage, AdvSearchPage, ExpiredAdvert
__all__ = ['MonsterBrowser']
class MonsterBrowser(PagesBrowser):
BASEURL = 'https://www.monster.fr'
advert = URL('https://offre-demploi.monster.fr/v2/job/View\?JobID=(?P<_id>.*)', AdvertPage)
expired_advert = URL('https://offre-demploi.monster.fr/v2/job/Expired\?JobId=(?P<_id>.*)', ExpiredAdvert)
adv_search = URL('/emploi/recherche/(?P.*)&page=(?P\d*)',
AdvSearchPage)
def search_job(self, pattern=None):
return self.adv_search.go(search='?q=%s' % quote_plus(pattern), page=1).iter_job_adverts()
def advanced_search_job(self, job_name, place, contract, limit_date):
search = '' if not contract else contract
query = {'q': quote_plus(job_name),
'where': place,
'tm': limit_date}
return self.adv_search.go(search='%s?%s' % (search, urlencode(query)), page=1).iter_job_adverts()
def get_job_advert(self, _id, advert):
return self.advert.go(_id=_id).get_job_advert(obj=advert)
woob-master-5f3d558793b537a74480241ac6981479f5938cd3-modules-monster/modules/monster/favicon.png 0000664 0000000 0000000 00000040312 14575653726 0031023 0 ustar 00root root 0000000 0000000 PNG
IHDR @ @ iq pHYs cHRM z% u0 ` : o_F @PIDATx @@X* !* jP WoB DW3 z
wZ $ Pf<