Compare commits

..

3 Commits
trunk ... trunk

Author SHA1 Message Date
3wc
e6fcd1e096 Manually specify login URL 2023-03-06 13:33:28 -05:00
3wc
108d10313f Adventurously ignore SSL verification errors 2023-03-06 13:27:56 -05:00
3wc
999266689e Drop python_version temporarily 2023-03-06 12:14:34 -05:00
2 changed files with 2 additions and 2 deletions

View File

@ -73,6 +73,7 @@ class APIv4:
None
"""
self.session = requests.Session()
self.session.verify = False
# Perform login post
self.session.cookies.update({"has_js": "1"})
@ -81,7 +82,7 @@ class APIv4:
"pass": password,
"form_id": "user_login_block",
}
res = self.session.post(self.base_url, data=postdata)
res = self.session.post("{0}/user".format(self.base_url), data=postdata)
if (not res.ok):
log.error("Login failed. Code: {}. Result: {}".format(res.status_code, res.text))
# we should raise an error here.

View File

@ -11,7 +11,6 @@ license_file = LICENSE
url =
license = MIT
platform = any
python_requires=">= 3.6"
classifiers =
Development Status :: 3 - Alpha
Intended Audience :: Developers