Query multi page web table

sitewolf

Active Member
Joined
May 4, 2012
Messages
297
Depending on when you go to this url (between Sunday and Thursday I guess), the table of football stats at this link will be multiple pages.
However, I can't for the life of me figure out how to query beyond page 1 because the url doesn't change (it doesn't even change from passing yards etc moving from table to table)
On some pages I used to be able to add things like print_row=9999 to the end of the url....doesn't work here. With Google Sheets even page 1 doesn't consistently pull in.


Is this something I can do with power query and I'm just missing how? Haven't used that much.
I'm on 365
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

sandy666

Banned - Rules violations
Joined
Oct 24, 2015
Messages
7,497
https://sports.yahoo.com/nfl/stats/weekly/?sortStatId=PASSING_YARDS&selectedTable=2&week={"week":1,"seasonPhase":"REGULAR_SEASON"}
https://sports.yahoo.com/nfl/stats/weekly/?sortStatId=PASSING_YARDS&selectedTable=2&week={"week":2,"seasonPhase":"REGULAR_SEASON"}
 

sitewolf

Active Member
Joined
May 4, 2012
Messages
297
I thank you for that, but it's not multiple WEEKS I'm looking to grab, it's multiple PAGES for the current week.
In other words, there's 4 pages to that table as I type this....I'm looking to be able to pull all 4 pages in and thus far only getting page 1
 

sandy666

Banned - Rules violations
Joined
Oct 24, 2015
Messages
7,497
Got it
I think you will need vba from source of this page (there are page numbers)
but I am not vba user so I can't help
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,817
Messages
5,772,456
Members
425,760
Latest member
paphon

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top