I've searched far and wide for this and unfortunately haven't been able to find an answer. I'm trying to fetch table elements from Wikipedia pages using the Wikipedia API and JavaScript/jQuery. For example, take the page below:
https://en.wikipedia.org/wiki/2017_NFL_Draft
If I want to be able to use the API to fetch just one cell of the table (eg round 1, pick #7, or all players drafted from UCLA) is there a way to do this? Because each page of these is the same, think this will be easy to do one call across pages (just need to increment the url by 1), but I haven't had any luck using the API to fetch anything except for a section.
I tried the test call which shows me the table:
https://en.wikipedia.org/w/api.php?action=parse&page=2017_NFL_Draft§ion=2&prop=text
And I see the specific elements I'd like to grab but can't figure out how. Is there anyway to do this? Would I be better off just copying/pasting the data in excel and putting it in a form I want?
Thanks for all of your help!