News for hackers. Stuff that matters.
Re:Learn random facts while pulling code changes by jenius on Friday August 03, 2012 @03:08PM (#4335605)
Pretty fun idea, does anyone know of a good way to make this work on osx?
Re:Learn random facts while pulling code changes by msbarnett on Friday August 03, 2012 @03:14PM (#4335636)
It looks like elinks is available in Homebrew[1], so the only added step is brew install elinks

[1]: https://github.com/mxcl/homebrew

Re:Learn random facts while pulling code changes by 5teev on Friday August 03, 2012 @04:54PM (#4336119)
Also MacPorts, so

port install elinks

Re:Learn random facts while pulling code changes by dacort on Friday August 03, 2012 @04:21PM (#4335963)
Not guaranteed to not break: curl -s http://randomfunfacts.com | grep "<td border" | sed 's/<[^>]*>//g' | sed 's/&nbsp;//'
Re:Learn random facts while pulling code changes by medwezys on Friday August 03, 2012 @03:14PM (#4335635)
It does work on OSX, you just need to install elinks (brew install elinks ?)
Re:Learn random facts while pulling code changes by Cyranix on Friday August 03, 2012 @03:37PM (#4335746)
Related question: How would one write this without the elinks dependency, using curl or wget?
Re:Learn random facts while pulling code changes by devgutt on Friday August 03, 2012 @06:48PM (#4336604)

   curl -s randomfunfacts.com | sed -n 's/.*<i>\(.*\)<\/i>.*/\1/p'
Re:Learn random facts while pulling code changes by artursapek on Friday August 03, 2012 @08:49PM (#4336969)
The poor man's API. I love it.
Re:Learn random facts while pulling code changes by GuiA on Friday August 03, 2012 @05:08PM (#4336196)
Re:Learn random facts while pulling code changes by RickFromSA on Friday August 03, 2012 @03:17PM (#4335647)
You need elinks, that's all. So: brew install elinks