16 lines
484 B
Python
16 lines
484 B
Python
import requests
|
|
import urllib3
|
|
urllib3.disable_warnings()
|
|
|
|
s = requests.Session()
|
|
r = s.get('https://homepage.snarfnet.net', verify=False)
|
|
print("Page length:", len(r.text))
|
|
import re
|
|
apis = re.findall(r'/api/[a-zA-Z0-9_/]+', r.text)
|
|
print("Found API routes:", set(apis))
|
|
|
|
# Also test hitting the Home Assistant custom widget api if any
|
|
# In Homepage, the widget endpoint is /api/widgets/homeassistant or similar or /api/services/...
|
|
# Let's check pod files to see what routes exist
|
|
|