Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove HTML Parsing #9

Open
lawrencefoley opened this issue Aug 20, 2021 · 1 comment
Open

Remove HTML Parsing #9

lawrencefoley opened this issue Aug 20, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@lawrencefoley
Copy link
Owner

lawrencefoley commented Aug 20, 2021

Right now the code uses HTML parsing to handle the login and for getting the meter ID(s). Research should be done to see if this part can be replaced with just HTTP calls.

Benefits would include:

  • simpler code
  • less dependencies (Beautiful Soup, lxml)
  • possibility of being added to the official Home Assistant repo (they don't allow HTML scraping for authentication)

https://www.evergy.com/api/user/current

@lawrencefoley lawrencefoley added the enhancement New feature or request label Aug 20, 2021
@lawrencefoley lawrencefoley self-assigned this Aug 20, 2021
@tboyce021
Copy link

tboyce021 commented May 4, 2023

I looked into this a bit and while the data can all be obtained without HTML parsing, I can't find a way to actually log in without parsing the csrf token. There appears to be an evrgaf that comes in the response headers, but it didn't seem to work for logging in.

@lawrencefoley lawrencefoley removed their assignment May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants