Query multi page web table

sitewolf

Active Member
Joined
May 4, 2012
Messages
304
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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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"}
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,034
Members
448,543
Latest member
MartinLarkin

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
Back
Top