-1

I have about 300 web URLS. I'll save them either as PDF or as HTML pages. In order to have access to these web pages I must be logged in.

I've tried chrome --headless but it saves a blank page!

chrome --headless --print-to-pdf="C:\\1.pdf" https://myurl.com

I wanted to try selenium in python but it has always opened a new Session where I wasn't logged in. I've used this code

Could you please suggest me a solution?

Best Regards

1 Answers1

0

first I opened a session with selenium and I logged in manually. Then I used the same session again (so reconnected) So I could access the pages in a Loop and save them

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Feb 25 '22 at 11:10