Skip to content

Instantly share code, notes, and snippets.

View floe's full-sized avatar
😵
Overworked

Florian Echtler floe

😵
Overworked
View GitHub Profile
@floe
floe / pihole-stats.py
Created March 18, 2025 16:42
Continuously fetch DNS query stats from Pihole 6
#!/usr/bin/python3
# very small script to continuously dump queries from a local network Pihole installation
# public domain, 2025 by Florian 'floe' Echtler <[email protected]>
import requests,sys,datetime,time
# use password to get a session token
url = "http://pi.hole/api/auth"
payload = {"password": sys.argv[1] }