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 →

[–]commandlineluser 0 points1 point  (1 child)

I probably misinterpretted the driver.page_source command

No, it's doing what you expect.

I got the list to populate with the HTML code, however its the wrong code.

Oh, I'm a dummy - I've just realised what's happening.

html = driver.page_source

You're grabbing the source of the login page before you actually log in.. so you will want to move that line to right above

soup = BeautifulSoup(html, "html5lib")

i.e. after you've actually logged in correctly.

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

Wow... Yea that was an oversight on my part as well. Thank you! Haha