Forum Discussion

AlexisOlson's avatar
AlexisOlson
Icon for Super User rankSuper User
7 years ago

Is it possible to scrape tables generated by javascript into the query editor?

As a concrete example, lets say I want to load in the Standings table at the bottom of https://tcec.chessdom.com/

 

I'd like to load in Engine, # Games, Points, etc., but I can't figure out how. If you view the source for the page, you can deduce that that table is generated by some sort of Javascript. Something about "crosstable, "socket", "bootstrap" and various things I'm not familiar with.

 

If I attempt to load it in via Power Query > Get Data > Web > Add table using examples, that table doesn't appear anywhere in the Web view and I'm guessing it's because it's dynamically generated rather than part of the base HTML.

 

Is there a reasonable solution or workaround for this natively? If not, are there any nice R/Python scripts that would do the job?

2 Replies