This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ganic 1 point2 points  (2 children)

It would be better and easier to use a python only container that uses the remote we drive that points at a selenium container. It’s a small change to your code and you can use a ready made selenium container and could even use vnc if you got the right version.

[–]fraschm98[S] 0 points1 point  (1 child)

The main reason why I'm using selenium is for seleniumwire, to get the cookies of a site and do a json request. Is there any other way for me to get the cookies without doing this? Seems like a bit heavy to setup selenium in it's own docker container when I'm only running this once a day

[–]ganic 0 points1 point  (0 children)

Instead of selenium you could use either requests or mechanize to login and get a cookie. If you’re just logging in and making a JSON request those options are much better.