ha-multiscrape icon indicating copy to clipboard operation
ha-multiscrape copied to clipboard

Form URL out of the form

Open Kijan opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. Hi I am trying to get the timetable from my daughters school. I got it wo work, but the login drives me crazy. when i try to login in browser i get the link to the login with a uuid or something. when i put this in the ressource it works. but i dont want to do that manually each day. so i tried to find out how to do this. now i saw the link is in the “form_page_response_body.txt” so can i use a link out of this txt file for the ressource for the form? it looks like this:

<p><strong>Describe the solution you'd like</strong> read the URL from the Form body</p> <p><strong>Describe alternatives you've considered</strong> i will try to get the URL with a second scrape</p>

Kijan avatar Sep 24 '23 20:09 Kijan

https://github.com/danieldotnl/ha-multiscrape/pull/327 might fix your problem. It will not allow you to set the link directly, but maybe a hack where you set the location redirect header? https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location If this works, please let me know. Looking forward to feedback. :)

jeremicmilan avatar Feb 09 '24 03:02 jeremicmilan

Please try release 7.1.2 and let me know if it addresses your issue!

danieldotnl avatar Aug 27 '24 13:08 danieldotnl