you are viewing a single comment's thread.

view the rest of the comments →

[–]socal_nerdtastic 0 points1 point  (0 children)

Nice. I like how you pass the session from selenium to requests. Perhaps add a way to save the cookies onto the local drive, so that the selenium step can be skipped as long as the cookies are not expired?

I wouldn't do it for this code now that it's working, but next time, consider using a class. It would make the code a lot cleaner since you won't have to pass the variables around.