How can I automate this process for lots of HTML files? Is it possible to open them using Selenium WebDriver somehow, add the necessary Cookies to Selenium web driver and then download the result DOM from Selenium to a file again?
Is there a quicker way than using Selenium, maybe some library that I can use?
If it helps, the library could also potentially request the original HTML via an URL, however, it must be a POST request with certain form-url-encoded content, so nothing I can easily do via Selenium.
Read more here: Source link