Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
AlexisOlson
Super User
Super User

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 2
v-danhe-msft
Employee
Employee

Hi @AlexisOlson,

Based on my test, I am afraid you could not get the data table, I have tried with python, but this web is a dynamic web, it could not load the data and with this function in Power BI:

https://docs.microsoft.com/en-us/power-bi/desktop-connect-to-web-by-example

It also could not load the correct data. Or I suggest you ask the problem in python forum to get a further problem.

Hope it could help you.

 

 Regards,

Daniel He

 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for trying. I guess I'll look into finding a python script I can embed in my M query.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.