pax_global_header 0000666 0000000 0000000 00000000064 14042356110 0014506 g ustar 00root root 0000000 0000000 52 comment=18d41565f955028f9fcd2f6cc437f5f1cb717401
woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-monster/ 0000775 0000000 0000000 00000000000 14042356110 0022466 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-monster/modules/ 0000775 0000000 0000000 00000000000 14042356110 0024136 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-monster/modules/monster/ 0000775 0000000 0000000 00000000000 14042356110 0025625 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-monster/modules/monster/__init__.py 0000664 0000000 0000000 00000001501 14042356110 0027733 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-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-monster/modules/monster/browser.py 0000664 0000000 0000000 00000003626 14042356110 0027671 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 woob.browser import PagesBrowser, URL
from woob.tools.compat import quote_plus, urlencode
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-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-monster/modules/monster/favicon.png 0000664 0000000 0000000 00000040312 14042356110 0027760 0 ustar 00root root 0000000 0000000 PNG
IHDR @ @ iq pHYs cHRM z% u0 ` : o_F @PIDATx @@X* !* jP WoB DW3 z
wZ $ Pf<