Forum Discussion

RokuCap's avatar
RokuCap
Icon for Helper I rankHelper I
2 years ago
Solved

Creating a Web Query to scrape data from multiple webpages

I was following along to an exercise to 'Web scrape with Power Query' (Link). It involves using a formula in Power Query to import 'Major League Base Detailed Standings' table data from the 'baseball...
  • PhilipTreacy's avatar
    2 years ago

    Hi RokuCap 

     

    Let me check, give me 10 minutes.  A quick look at the web page structure shows me that the actual table of data you want is in HTML comments, meaning the web browser wouldn't display it.

     

    So the fact we are seeing it means there's something else going on like maybe JavaScript is reading the table and rendering it to screen.  Unusual.

     

    In the meantime I've created this example PBIX file  that loads the data you want via a function.

     

    Phil