Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/badboy/hackernews2mail
Read HackerNews with your favourite mail client!
https://github.com/badboy/hackernews2mail
Last synced: 24 days ago
JSON representation
Read HackerNews with your favourite mail client!
- Host: GitHub
- URL: https://github.com/badboy/hackernews2mail
- Owner: badboy
- Created: 2012-03-03T15:11:57.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-03-03T15:13:42.000Z (almost 13 years ago)
- Last Synced: 2024-12-24T02:01:22.635Z (28 days ago)
- Language: Ruby
- Homepage: http://news.ycombinator.com/item?id=3660230
- Size: 89.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
HackerNews2Mail
===============Everyone loves [Hacker News](http://news.ycombinator.com/). And everyone loves mail.
So I just combined the two of them.What does it do?
================It just writes all the comments of one thread into a maildir-structured directory
where you can read it with whatever you want.For example with mutt:
![hacker-news-in-mutt](http://tmp.fnordig.de/2012-03-03-hacker-news-mutt-mail.png)
What to do?
===========For now you have to fetch the json containing the post and comments yourself:
curl http://api.ihackernews.com/post/3657821 > comments.json
and then run the script:
ruby hn2mail.rb
What do I need for this to work?
================================Just two gems:
* [mustache](http://rubygems.org/gems/mustache)
* [nokogiri](http://rubygems.org/gems/nokogiri)License
======="THE BEER-WARE LICENSE" (Revision 42):
badboy wrote this script. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return. Jan-Erik Rediger