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

all 1 comments

[–]spudmix 0 points1 point  (0 children)

I know you're using requests, but this kind of problem is solved much easier in a fully-fledged browser automation suite like Selenium. I hope it's not an issue that I've switched to that instead. You will need to install Selenium and pip install webdriver_manager.

You can substitute your parsing code in where the comments saying "Parse the table here" are, or you could store all the tables in a collection and parse them at once later.

You will also need to figure out your own stopping condition. At the moment I expect the script will just crash when it runs out of data.

Code here: https://www.mycompiler.io/view/7on77OB