Skip to content

Commit

Permalink
Merge pull request #8 from GingerIndustries/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
gingershaped authored Nov 4, 2022
2 parents 346f51d + bd1180b commit 461762e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ replit.nix
poetry.lock
.config/
venv/
./*.py
*.py
*.sh
docs/build
dist/
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sechat"
version = "1.1.0"
version = 1.1.1
description = "A BETTER Stack Exchange chat library."
readme = "README.md"
authors = ["Ginger"]
Expand Down
5 changes: 3 additions & 2 deletions sechat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,14 +605,15 @@ def login(self, email, password, host="codegolf.stackexchange.com"):
self.logger.debug("Getting fkey...")
fkey = BeautifulSoup(
self.session.get(
"https://openid.stackexchange.com/account/login"
"https://meta.stackexchange.com/users/login"
).text,
"html.parser"
).form.find(attrs={"name": "fkey"})["value"]
).find(attrs={"name": "fkey"})
if fkey == None:
raise errors.FutureError(
"Unable to extract fkey from login page, are you using this in the future?"
)
fkey = fkey["value"]
self.logger.debug("Got fkey: " + fkey)
self.logger.debug("Logging in to Stack Exchange...")
r = self.session.post(
Expand Down

0 comments on commit 461762e

Please sign in to comment.