Skip to content

Script to automatically log into wifi hotspots that redirect to an agreement page before allowing access.

Notifications You must be signed in to change notification settings

johnboiles/hotspot_autologin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Hotspot Autologin Script

Script to automatically log into wifi hotspots that redirect to an agreement page before they will give you access. I use this script on my Raspberry Pi to automatically log me into the wifi at the Berkeley Marina, but it should be easy to adapt to other hotspots that use the common redirect->agree->connect pattern. Tested on Python2.7.

Features

  • Login to hotspots from the command line without a web browser
  • Option to automatically cron itself to happen in another 24 hours
  • Retries with exponential backoff

Requirements

  • Python 2.7
  • (optional) python-crontab for the cron feature (sudo easy_install python-crontab)

Run

Nothing fancy here, just run it like you'd run any old script.

python hotspot_autologin.py

or

./hotspot_autologin.py

Example

Here's how I use it:

hotspot_autologin.py --cron --retries 15 --logfile /var/log/hotspot_autologin.log

About

Script to automatically log into wifi hotspots that redirect to an agreement page before allowing access.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages