aboutsummaryrefslogtreecommitdiff
path: root/e3372.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-03-23 00:08:11 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-03-23 00:08:11 +0300
commit560d8822ec78a5e4bac44b5bbd752a1acefcf59a (patch)
treebea4ec714cb21fa28cd871c8ebaadb6a90d48c82 /e3372.py
initial
Diffstat (limited to 'e3372.py')
-rw-r--r--e3372.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/e3372.py b/e3372.py
new file mode 100644
index 0000000..7d0b9d5
--- /dev/null
+++ b/e3372.py
@@ -0,0 +1,17 @@
+import requests
+from bs4 import BeautifulSoup
+
+class E3372:
+ def __init__(self, ip: str):
+ self.ip = ip
+ self.headers = {}
+ pass
+
+ def auth(self):
+ pass
+
+ def _request(self, endpoint: str, method='GET'):
+ url = f"http://{self.ip}/api/webserver/SesTokInfo"
+ r = requests.get(url) if method == 'GET' else requests.post(url)
+ soup = BeautifulSoup(r.text, "lxml")
+ print(soup) \ No newline at end of file