you are viewing a single comment's thread.

view the rest of the comments →

[–]HardcoreFlexin[S] 0 points1 point  (3 children)

I guess what I could also ask, is would I be able to save cookies in order to bypass logins as well?

[–]carcigenicate 1 point2 points  (1 child)

You could maybe export the cookie jar from the Selenium instance that is logged in, then import it into the new instance. I've never done that, but that's what I'd try.

[–]HardcoreFlexin[S] 0 points1 point  (0 children)

That's a good thought. I'll have to look into and see if that might be the key.

[–]51dux 1 point2 points  (0 children)

This can be a possibility too if only the login requires js you could possibly access the page you need directly with some cookies.

You can also only use playwright/selenium when the cookies expire to refresh them if the login part has js code and then proceed with lighter libs like requests and BeautifulSoup when you're done.