1.0.0 • Published 8 years ago

susd-page-parser v1.0.0

Weekly downloads
170
License
WTFPL
Repository
github
Last release
8 years ago

susd-page-parser

A function which, given the html from the games/videos pages at shutupandsitdown.com, spits out a data structure.

Example output:

[ { url: 'https://www.shutupandsitdown.com/games/dead-of-winter-the-long-night/',
    title: 'Dead of Winter: The Long Night',
    imageUrl: 'https://www.shutupandsitdown.com/wp-content/uploads/2016/09/pic2906832.jpg',
    tags:
     [ 'dead-of-winter-the-long-night',
       'susd-recommends',
       'heavy-games',
       'bluffing-games',
       'expansions' ] },
  { url: 'https://www.shutupandsitdown.com/games/inis/',
    title: 'Inis',
    imageUrl: 'https://www.shutupandsitdown.com/wp-content/uploads/2016/08/pic3112623_lg.jpg',
    tags: [ 'inis', 'susd-recommends', 'war-games', 'games-for-two' ] } ]

License

WTFPL