JGordon11
Well-known Member
- Joined
- Jan 18, 2021
- Messages
- 845
- Office Version
- 365
- Platform
- Windows
Can one use power query to download the masters scoreboard at https://www.masters.com/en_US/scores/index.html? If so, how?
Book1 (version 1).xlsb | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | POS | NAME | TOTAL | THRU | TODAY | R1 | R2 | R3 | R4 | TOTAL_1 | ||
2 | 1 | Dustin Johnson | -20 | F | -4 | 65 | 70 | 65 | 68 | 268 | ||
3 | T2 | Cameron Smith | -15 | F | -3 | 67 | 68 | 69 | 69 | 273 | ||
4 | T2 | Sungjae Im | -15 | F | -3 | 66 | 70 | 68 | 69 | 273 | ||
5 | 4 | Justin Thomas | -12 | F | -2 | 66 | 69 | 71 | 70 | 276 | ||
6 | T5 | Rory McIlroy | -11 | F | -3 | 75 | 66 | 67 | 69 | 277 | ||
7 | T5 | Dylan Frittelli | -11 | F | E | 65 | 73 | 67 | 72 | 277 | ||
8 | T7 | C.T. Pan | -10 | F | -4 | 70 | 66 | 74 | 68 | 278 | ||
9 | T7 | Brooks Koepka | -10 | F | -2 | 70 | 69 | 69 | 70 | 278 | ||
10 | T7 | Jon Rahm | -10 | F | -1 | 69 | 66 | 72 | 71 | 278 | ||
11 | T10 | Webb Simpson | -9 | F | -4 | 67 | 73 | 71 | 68 | 279 | ||
Sheet7 |
let
Source = Web.Page(Web.Contents("https://www.augusta.com/masters/leaderboard")),
Data0 = Source{0}[Data],
RemovedTopRows = Table.Skip(Data0,2),
PromoteHeaders = Table.PromoteHeaders(RemovedTopRows, [PromoteAllScalars=true]),
Types = Table.TransformColumnTypes(PromoteHeaders,{{"POS", type text}, {"NAME", type text}, {"TOTAL", type text}, {"THRU", type text}, {"TODAY", type text}, {"R1", Int64.Type}, {"R2", Int64.Type}, {"R3", Int64.Type}, {"R4", Int64.Type}, {"TOTAL_1", Int64.Type}}),
KeptFirstRows = Table.FirstN(Types,10)
in
KeptFirstRows