diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-03-23 00:08:11 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-03-23 00:08:11 +0300 |
commit | 560d8822ec78a5e4bac44b5bbd752a1acefcf59a (patch) | |
tree | bea4ec714cb21fa28cd871c8ebaadb6a90d48c82 /e3372.py |
initial
Diffstat (limited to 'e3372.py')
-rw-r--r-- | e3372.py | 17 |
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 |