Merge branch 'kfchotspot' into 'master'
kfc hotspot fxcker Closes #7 See merge request laudom/librefi!2netiawifi
commit
5ad75cb94c
|
@ -2,6 +2,7 @@ from ._dummy import DummyFxcker
|
|||
from .umwarszawa import UMWarszawaFxcker
|
||||
from .ledatel import LedatelFxcker
|
||||
from .ipartners import IPartnersFxcker
|
||||
from .kfchotspot import KFCHotspotFxcker
|
||||
from .justwifi import JustWifiFxcker
|
||||
|
||||
fxckers_map = [
|
||||
|
@ -9,6 +10,7 @@ fxckers_map = [
|
|||
(["UM-Warszawa"], UMWarszawaFxcker),
|
||||
(["Pendolino_WiFi"], LedatelFxcker),
|
||||
(["McD-Hotspot"], IPartnersFxcker),
|
||||
(["KFC Hotspot"], KFCHotspotFxcker),
|
||||
([
|
||||
"Intercity_WiFi",
|
||||
"_PKP_WIFI",
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
from ._common import BaseFxcker
|
||||
from ..utils import regex_search_string
|
||||
|
||||
|
||||
class KFCHotspotFxcker(BaseFxcker):
|
||||
def unfxck(self, location):
|
||||
splash = self.request("GET", location)
|
||||
url = regex_search_string(
|
||||
r'<a href="([^"]+)" [^>]+id="accept-button">Chcę połączyć się',
|
||||
splash.text)
|
||||
self.request("GET", url)
|
||||
return True
|
Loading…
Reference in New Issue