#meo-wifi-login
Allows for an automated login through a MEO Wifi Premium hotspot.
You may use 'meo_wifi_login.py' file as regular script, running it via CLI...:
./meo_wifi_login -u <username> -p <password>
...or call the 'meo_wifi_login' function through your script:
import meo_wifi_login
meo_wifi_login.meo_wifi_login('user','pass')
The script also looks for a 'MEO_WIFI_USER' and 'MEO_WIFI_PASSWORD' environment variable for the login information.
In case neither of these sources are available, it will prompt the user via console to fill them
Beyond the standard Python libraries, you need the 'requests' library.
You can install it using pip:
pip install requests
Several Linux distros also have a package for it. For example, in Ubuntu 12.04 you can:
sudo apt-get install python-requests
###Note: Python earlier than 2.7.9 has some restrictions on their 'ssl' module that limits the configuration 'urllib3' can apply.
If you have a InsecurePlatformWarning
error, update Python to v2.7.9+ or install 'requests' extra package set 'security' with:
pip install requests[security]
This should install the following extra packages:
- pyOpenSSL>
- ndg-httpsclient
- pyasn1