Skip to content

Instantly share code, notes, and snippets.

@wisq
Last active January 1, 2019 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wisq/d3ff23e43d31c3923bc7406d707f9f81 to your computer and use it in GitHub Desktop.
Save wisq/d3ff23e43d31c3923bc7406d707f9f81 to your computer and use it in GitHub Desktop.
Fetch the winning game titles from the RPS Advent Calendar 2018
#!/bin/sh
wget -nc -r --accept-regex='https://www.rockpapershotgun.com/2018/12/[0-9]+/the-rps-advent-calendar-2018-dec-[^/]+/$|https://www.rockpapershotgun.com/tag/the-rps-advent-calendar-2018/page/[0-9]+/$' https://www.rockpapershotgun.com/tag/the-rps-advent-calendar-2018/
echo
echo "===================================="
find www.rockpapershotgun.com/2018 -name 'index.html' -print0 | sort -z | xargs -0 grep "</a>!</p>" | cut -d/ -f2-4,8- | sed "s#/www#>#g" | cut -d'>' -f1,3 | cut -d'<' -f1 | sed -e "s/>/: /" -e "s#/#-#g" -e "s/&#8217;/'/g"
echo "===================================="
echo
====================================
2018-12-01: Subnautica
2018-12-02: Chuchel
2018-12-03: Monster Hunter:World
2018-12-04: Unavowed
2018-12-05: Forza Horizon 4
2018-12-06: Yakuza 0
2018-12-07: Spy Party
2018-12-08: Warhammer: Vermintide 2
2018-12-09: Assassin's Creed Odyssey
2018-12-10: Celeste
2018-12-11: FAR: Lone Sails
2018-12-12: Zones
2018-12-13: QUBE 2
2018-12-14: Yoku's Island Express
2018-12-15: The Red Strings Club
2018-12-16: The Hex
2018-12-17: Battletech
2018-12-18: Jazztronauts
2018-12-19: Dragon Ball FighterZ
2018-12-20: Paratopic
2018-12-21: Slay The Spire
2018-12-22: Hitman 2
2018-12-23: Into The Breach
2018-12-24: Return Of The Obra Dinn
====================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment