spencermountain / wtf_wikipedia

a pretty-committed wikipedia markup parser
https://observablehq.com/@spencermountain/wtf_wikipedia
MIT License
773 stars 129 forks source link

Parse each table entry into object #56

Closed cckelly closed 7 years ago

cckelly commented 7 years ago

Hey there! Right now each table cell gets parsed into it's own key in the Map that gets returned, would be great to get the entire entry as an object and grab the columns from there.

spencermountain commented 7 years ago

hey Charles, yeah. this is a good idea. We're due for a whole result reformat. what would be the best shape for it? cheers

cckelly commented 7 years ago

Using the 'Licensed Games' as an example from https://en.wikipedia.org/wiki/List_of_Nintendo_Entertainment_System_games, it could return something along the lines of:

{
  { 'Title': '10-Yard Fight', 'Publisher': 'Nintendo' },
  { 'Title': '1942', 'Publisher': 'Capcom' }
  etc
}

Thoughts?

spencermountain commented 7 years ago

yeah. that's way better. i agree. lemme see what i can do

cckelly commented 7 years ago

Sweet! Looking forward to it, let me know if I can help.

spencermountain commented 7 years ago

hey, this is done now in v1.0.0, can you check it out?

cckelly commented 7 years ago

Will do!