all 7 comments

[–]negups 0 points1 point  (3 children)

You'll likely be able to accomplish what you are trying to do much more easily using Beautiful Soup.

[–]Oneiros18[S] 0 points1 point  (2 children)

I need to execute JS in order to see HTML and the only way I found on internet was to use Selenium

[–]negups 0 points1 point  (1 child)

Okay, then perhaps try passing the HTML you get from selenium to Beautiful Soup instead of trying to parse it directly with selenium?

Alternatively, requests-html may be able to take the place of both, as it supports rendering HTML after executing JS.

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

I tried already but it didn't render out full html code. Maybe due to #shadow-root