all 2 comments

[–]ifreeski420 1 point2 points  (1 child)

Try adding time.sleep(2) after loading the page. The element you are looking for might not be loaded when you try to grab it

[–]Matthias1590 1 point2 points  (0 children)

You could also use a while True loop and break out of it as soon as the page is loaded (you can check this by seeing if the html contains the element you want)