Scraping a table from a section in Wikipedia
I'm trying to come up with a robust way to scrape the final standings of the NFL teams in each season; wonderfully, there is a Wikipedia page with links to all this info. Unfortunately, there is a lot of inconsistency (perhaps to be expected, given the evolution of league structure) in how/where the final standings table is stored. The saving grace should be that the relevant table is always in a section with the word "Standings". Is there some way I can grep a section name and only extract the table node(s) there? Here are some sample pages to demonstrate the structure: 1922 season - Only one