Xadrez Verbal is a Brazilian podcast on international politics. Each episode brings a few cultural recommendations such as movies, books, music etc.
This app goes through Xadrez Verbal's website looking for those recommendations and compiles them into a friendlier data format, which are then displayed in the website you see in the screenshot above.
Give the bin script permission to run:
$ sudo chmod +x deploy.sh
And run it:
$ ./deploy.sh
The script will fetch new data, update the JSON cache, update the static web pages and deploy them to Github.io Pages.
Crawler#call
will first try to load the cache file (in cache.json
). A cursor is included in the file so we know when the crawler was last run. After fetching the new posts, it will go through them and try to find the recommendations (compiler/app/fetcher.rb
). The crawler will then save the updated hash into cache.json
together with the updated cursor.
The viewer uses the excellent https://github.com/nanoc/nanoc gem to compile static web pages. The pages themselves are very simple, with very few CSS and zero Javascript (except for a Google Analytics tracker).