3 ms·
Pretty fun idea, does anyone know of a good way to make this work on osx?
by jenius 14y ago
Pretty fun idea, does anyone know of a good way to make this work on osx?
- Cyranix 14y agoRelated question: How would one write this without the elinks dependency, using curl or wget?
- GuiA 14y agohttp://news.ycombinator.com/item?id=4335963 http://news.ycombinator.com/item?id=4335963
- devgutt 14y agocurl -s randomfunfacts.com | sed -n 's/.*<i>\(.*\)<\/i>.*/\1/p'
- artursapek 14y agoThe poor man's API. I love it.
- medwezys 14y agoIt does work on OSX, you just need to install elinks (brew install elinks ?)
- msbarnett 14y agoIt looks like elinks is available in Homebrew[1], so the only added step is brew install elinks [1]: https://github.com/mxcl/homebrew https://github.com/mxcl/homebrew
- 5teev 14y agoAlso MacPorts, so port install elinks
- RickFromSA 14y agoYou need elinks, that's all. So: brew install elinks
- dacort 14y agoNot guaranteed to not break: curl -s http://randomfunfacts.com http://randomfunfacts.com | grep "<td border" | sed 's/<[^>]*>//g' | sed 's/ //'