psmode / essstat Goto Github PK
View Code? Open in Web Editor NEWTP-Link Easy Smart Switch port statistics
License: GNU General Public License v3.0
TP-Link Easy Smart Switch port statistics
License: GNU General Public License v3.0
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]>
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
The behavior of the workbook under error conditions is not what was expected. A big problem was the failure of Excel to fully reset the error condition if a 400 series status was returned by the web query. Should this occur, subsequent query operations signal VBA errors before actually doing the GET operation against eh web server.
Finish the code using TimeScaleFactor to adjust the location of labels and tick marks on the X axis of the PPS chart.
Python 3.9.1
python-beautifulsoup4 4.9.3-3
tp-link TL-SG108E
Input:
# python essstat.py 192.168.10.4 -u"admin" -p"xxxxxxxx"
Output:
Traceback (most recent call last):
File "/home/lucy/essstat/essstat.py", line 158, in <module>
max_port_num = int(pattern.search(soup.script.text).group(2))
AttributeError: 'NoneType' object has no attribute 'group'
Hi,
First : thanks for your code. I hope it will be usefull for monitoring my entire network.
Second :
I've got this issue : AttributeError: 'NoneType' object has no attribute 'group'
Here the trace in Debug Mode.
I already checked for a similar issue but still not working.
Could you please have a look and support me fixing this issue ?
I'm running on a pi4 with Python v3.9 / bs4 v4.11.1
Thanks in advance
nONo
python3 essstat.py 192.168.1.247 -d -u "admin" -p "________________"
admin
wap_zbpllstr4d_s
http://192.168.1.247
BeautifulSoup4 version: 4.11.1
<Response [200]>
True
[<script src="common.js" type="text/javascript"></script>,
Traceback (most recent call last):
File "/home/pi/essstat/essstat.py", line 169, in
print(pattern.search(str(soup.head.find_all("script"))).group(0))
AttributeError: 'NoneType' object has no attribute 'group'
There are lots of tools that use SNMP to query network devices. It would be lovely if this library could be used to create a persistent process that returns SNMP data for the switch.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.