pax_global_header 0000666 0000000 0000000 00000000064 13514067645 0014525 g ustar 00root root 0000000 0000000 52 comment=6d52c0c92f2617476fe0b131c1eebba68676b2fb
woob-6d52c0c92f2617476fe0b131c1eebba68676b2fb-modules-blablacar/ 0000775 0000000 0000000 00000000000 13514067645 0023116 5 ustar 00root root 0000000 0000000 woob-6d52c0c92f2617476fe0b131c1eebba68676b2fb-modules-blablacar/modules/ 0000775 0000000 0000000 00000000000 13514067645 0024566 5 ustar 00root root 0000000 0000000 woob-6d52c0c92f2617476fe0b131c1eebba68676b2fb-modules-blablacar/modules/blablacar/ 0000775 0000000 0000000 00000000000 13514067645 0026471 5 ustar 00root root 0000000 0000000 woob-6d52c0c92f2617476fe0b131c1eebba68676b2fb-modules-blablacar/modules/blablacar/__init__.py 0000664 0000000 0000000 00000001515 13514067645 0030604 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2015 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 BlablacarModule
__all__ = ['BlablacarModule']
woob-6d52c0c92f2617476fe0b131c1eebba68676b2fb-modules-blablacar/modules/blablacar/browser.py 0000664 0000000 0000000 00000003150 13514067645 0030525 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2015 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 weboob.tools.compat import urlencode
from .pages import DeparturesPage
from datetime import datetime
class BlablacarBrowser(PagesBrowser):
BASEURL = 'https://www.blablacar.fr'
departures = URL('/search_xhr\?(?P.*)', DeparturesPage)
def get_roadmap(self, departure, arrival, filters):
pass
def get_station_departures(self, station_id, arrival_id, date):
query = {'fn': station_id}
if arrival_id:
query['tn'] = arrival_id
if date:
_date = datetime.strftime(date, "%d/%m/%Y")
query['db'] = _date
_heure = datetime.strftime(date, "%H")
query['hb'] = _heure
query['he'] = '24'
return self.departures.open(qry=urlencode(query)).get_station_departures()
woob-6d52c0c92f2617476fe0b131c1eebba68676b2fb-modules-blablacar/modules/blablacar/favicon.png 0000664 0000000 0000000 00000006374 13514067645 0030636 0 ustar 00root root 0000000 0000000 PNG
IHDR @ @ iq pHYs tIMEUT iTXtComment Created with GIMPd.e bKGD ^ `IDATx[Nw{MXbƀ(.@4QD $PCB811bvmڟ̼-=Zx?۽7ߛy+/O5]̲<%>} ;!v{G!rVkIc!8ZGTE4#rٲ+pTf9xVa;4"m7hȍ>(=Ewp5!mHGkS]Cvɧ8Ɍ }} iF%Cc3"9<;U.poZ 'rk]̓ޱ+ ,(\su1Υs.7@:= oHqM6y&)J;Y B}SckgI%Rw|-}=P)vsg I= leus}k*yח4T=