Skip to content

Instantly share code, notes, and snippets.

@lebuni
lebuni / accept_wifi_terms.py
Last active May 4, 2023 13:06
Automatically login to open WiFi: This script accepts automatically the terms and conditions, that often needs to be confirmed when logging in into an open WiFi.
#!/usr/bin/env python
"""Connects to wifi in case terms and conditions need to be accepted"""
import mechanize
def accept_wifi_terms():
URL = 'https://www.google.com/'
br = mechanize.Browser()