donnex / pylansforsakringar

Länsförsakringar Python library (scraping)
2 stars 1 forks source link

Outdated parameters #1

Open KristofferSmedlund opened 5 years ago

KristofferSmedlund commented 5 years ago

https://github.com/donnex/pylansforsakringar/blob/40e2ae78577ed6e4e5125a6164adbdd83c2ae6b7/lansforsakringar.py#L180

Hey, thanks for the code. Most of it is still up to date but this has been updated should be

{"accountNumber":"XXXXXXX","currentPageNumber":0,"searchCriterion":{"fromDate":"2017-12-01","toDate":"2019-04-30","fromAmount":"","toAmount":""}}

donnex commented 5 years ago

Thanks for the info!

Actually I think I've fixed this but forgot to push it. I'll take a look later.

I had no idea someone else used this :P

Länsförsäkringar is actually working on proper public APIs if you're interested.

https://twitter.com/segelstrom/status/1115164564616880128

https://www.lansforsakringar.se/stockholm/privat/om-oss/kontakta-oss/sidfot/juridik--sakerhet/openbanking-sv/

limolitz commented 5 years ago

I have a fork at wasmitnetzen/pylansforsakringar which also supports the new "upcoming transactions" and multiple result pages. I'll file a PR in the next days.