I try the script with a TL-SG1024DE :
python .\essstat.py -d 192.168.10.1 -p xxxx-u FredThx
FredThx
xxxx
http://192.168.10.1
<Response [200]>
<script src="common.js" type="text/javascript"></script>
None
Traceback (most recent call last):
File "essstat.py", line 149, in
print(pattern.search(soup.script.string).group(0))
TypeError: expected string or bytes-like object
soup.script.string is None!
please find attache the html request
PortStatisticsRpm.htm.txt