kfc hotspot fxcker
This commit is contained in:
parent
58ba4b4d6b
commit
226b0c8193
|
@ -2,10 +2,12 @@ from ._dummy import DummyFxcker
|
|||
from .umwarszawa import UMWarszawaFxcker
|
||||
from .ledatel import LedatelFxcker
|
||||
from .ipartners import IPartnersFxcker
|
||||
from .kfchotspot import KFCHotspotFxcker
|
||||
|
||||
fxckers_map = [
|
||||
([r"re:MZK Opole \d{3}(?: (?:2.4|5)GHz)?"], DummyFxcker),
|
||||
(["UM-Warszawa"], UMWarszawaFxcker),
|
||||
(["Pendolino_WiFi"], LedatelFxcker),
|
||||
(["McD-Hotspot"], IPartnersFxcker),
|
||||
(["KFC Hotspot"], KFCHotspotFxcker),
|
||||
]
|
||||
|
|
12
librefi/fxckers/kfchotspot.py
Normal file
12
librefi/fxckers/kfchotspot.py
Normal file
|
@ -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 a new issue