Enhance the bleedingcool.com RSS feed with images and video.
The Bleeding Cool news website only provides an abridged RSS feed. This web app, written in Go, takes the original feed and enriches it with all the content of the source page. This includes images, video and more text.
- Uses goroutines and channels to fetch each page in parallel. Very fast.
- No external dependancies.
- Category support.
To compile and run locally, ensure you have Go, clone the repo and run this command
$ PORT=5000 go run bcool.go
Then navigate to http://localhost:5000/feed
in your browser or aggregator to
see the full feed. If you are only interesting in a single category a param can
be optionally applied eg http://localhost:5000/feed?category=comics
. At the
time of writing the categories available are comics
, film
and games-2
.
To run your own hosted version it's really easy to deploy to Heroku by running
$ heroku create -b https://github.com/kr/heroku-buildpack-go.git
$ git push heroku master
The approach I have taken here could be applied generally to other feeds. I'd like to extract this out and use it elsewhere.