Skip to content

Instantly share code, notes, and snippets.

View paspo's full-sized avatar

Paolo Asperti paspo

View GitHub Profile
from fritzconnection import FritzConnection
import telepot
import re
connection = FritzConnection(password='YOUR_FROTS_PASSWORD')
ip = connection.call_action('WANPPPConnection', 'GetInfo')['NewExternalIPAddress']
match = re.search('^100\.', ip)
if match: