diff options
Diffstat (limited to 'e3372.py')
-rw-r--r-- | e3372.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -66,6 +66,7 @@ class WebAPI: def request(self, endpoint: str, data=None): url = f'http://{self.ip}/api/{endpoint}' r = requests.get(url, headers=self.headers) if data is None else requests.post(url, data=data, headers=self.headers) + r.encoding = 'utf-8' soup = BeautifulSoup(r.text, 'lxml-xml') |