Hello everyone,
I am trying to access a web page with some pictures in it, so that I can download the pictures and then do some fun things with them. Very much like this post here with the smoothies https://medium.com/@Julien_Corb/web-scraping-with-elixir-using-httpoison-and-floki-26ebaa03b076 .
The difference is, the access is gated behind a login screen → username and password. I am fairly new to all of this, so my rookie mistake was to just send a request to the link, which naturally returns to me a %HTTPoison.Response{} structure. The body of the response being the logging screen.
For some reason the documentation of Httpoison is lacking… or rather not helpful, as it is just “This is an existing function. It takes parameters.” There is no example for what I am trying to do, which I thought would be a very common thing. Should I go to Hackney to find proper documentation?
So my question is, Can I do this all in one go? - Send a request with the appropriate logging parameters and directly receiving the body / the images straight away. How? How do I know, where do I look for further help?
Much appreciated if somebody could help with this. Thank you in advance!