Skip to content

Instantly share code, notes, and snippets.

@fizx
Created August 28, 2009 22:41
Show Gist options
  • Select an option

  • Save fizx/177304 to your computer and use it in GitHub Desktop.

Select an option

Save fizx/177304 to your computer and use it in GitHub Desktop.
kyles-macbook:csvget kyle$ ./bin/jsonget --parselet=../hndemo/hn.let http://news.ycombinator.com -R '.*'
kyles-macbook:csvget kyle$ cat hn.let.json
{ "headlines": [ { "title": "Simpson's paradox: why mistrust seemingly simple statistics", "link": "http:\/\/en.wikipedia.org\/wiki\/Simpson%27s_paradox", "comments": "6", "user": "waldrews", "score": "71", "time": "5 hours ago" }, { "title": "America's unjust sex laws", "link": "http:\/\/www.economist.com\/opinion\/displaystory.cfm?story_id=14165460", "comments": "80", "user": "MikeCapone", "score": "77", "time": "5 hours ago" }, { "title": "The Facebook Exodus", "link": "http:\/\/www.nytimes.com\/2009\/08\/30\/magazine\/30FOB-medium-t.html?_r=1&nl=technology&emc=techupdateema1", "comments": "3", "user": "smharris65", "score": "8", "time": "54 minutes ago" }, { "title": "Buy somebody lunch", "link": "http:\/\/www.whattofix.com\/blog\/archives\/2009\/08\/buy-somebody-lu.php", "comments": "34", "user": "DanielBMarkham", "score": "68", "time": "6 hours ago" }, { "title": "A design pattern is an artifact of a missing feature in your chosen language", "link": "http:\/\/www.snell-pym.org.uk\/archives\/2008\/12\/29\/design-patterns\/", "comments": "23", "user": "bensummers", "score": "48", "time": "5 hours ago" }, { "title": "API changes in Snow Leopard", "link": "http:\/\/developer.apple.com\/mac\/library\/releasenotes\/MacOSX\/WhatsNewInOSX\/Articles\/MacOSX10_6.html#\/\/apple_ref\/doc\/uid\/TP40008898-SW1", "comments": "11", "user": "pieter", "score": "27", "time": "4 hours ago" }, { "title": "My project: CSVGet -- Get structured data from sites as CSV", "link": "http:\/\/github.com\/fizx\/csvget\/tree\/master", "comments": "5", "user": "fizx", "score": "12", "time": "2 hours ago" }, { "title": "Snow Leopard: It's Built for the Future.", "link": "http:\/\/www.delicious-monster.com\/blog\/2009\/08\/snow-leopard-it-built-for-future.html", "comments": "3", "user": "gthank", "score": "9", "time": "1 hour ago" }, { "title": "OpenCL \"Hello World\"", "link": "http:\/\/developer.apple.com\/mac\/library\/documentation\/Performance\/Conceptual\/OpenCL_MacProgGuide\/Example:Hello,World\/Example:Hello,World.html", "comments": "10", "user": "pieter", "score": "19", "time": "3 hours ago" }, { "title": "Make Frontpage of Slashdot, Reddit, Hacker News == Google Disables AdSense", "link": "http:\/\/www.hizook.com\/page\/hizookcom-frontpage-slashdot-reddit-digg-engadget-hacker-news-result-google-disables-adsense-ac", "comments": "133", "user": "beambot", "score": "297", "time": "17 hours ago" }, { "title": "Strategy: Solve Only 80 Percent of the Problem", "link": "http:\/\/highscalability.com\/strategy-solve-only-80-percent-problem", "comments": "8", "user": "alrex021", "score": "15", "time": "3 hours ago" }, { "title": "How to run a linux based home web server", "link": "http:\/\/stevehanov.ca\/blog\/index.php?id=73", "comments": "17", "user": "RiderOfGiraffes", "score": "32", "time": "5 hours ago" }, { "title": "How to beat Amazon's Kindle.", "link": "http:\/\/slate.com\/id\/2226503", "comments": "6", "user": "peter123", "score": "10", "time": "2 hours ago" }, { "title": "What Google Engineers Are Building in Seattle", "link": "http:\/\/www.xconomy.com\/seattle\/2009\/08\/28\/google-seattle-is-hiring-making-bid-to-be-transparent-to-local-engineers\/", "comments": "2", "user": "gthuang", "score": "10", "time": "3 hours ago" }, { "title": "US Senate bill allows White House to disconnect private computers from Internet", "link": "http:\/\/news.cnet.com\/8301-13578_3-10320096-38.html", "comments": "23", "user": "drewr", "score": "36", "time": "6 hours ago" }, { "title": "Mark Bao's startup Atomplan acquired. Congratulations!", "link": "http:\/\/avecora.com\/press\/2009-august-24_avecora-ondemand-acquisition", "comments": "22", "user": "kirubakaran", "score": "46", "time": "7 hours ago" }, { "title": "Google Analytics Blog: An API Integration To Measure Significant Change", "link": "http:\/\/analytics.blogspot.com\/2009\/08\/api-integration-to-measure-significant.html", "comments": "2", "user": "avibryant", "score": "4", "time": "1 hour ago" }, { "title": "PG: \"News organisations can learn from start-up culture\"", "link": "http:\/\/www.journalism.co.uk\/5\/articles\/535577.php", "comments": "7", "user": "mark_h", "score": "13", "time": "4 hours ago" }, { "title": "Smart Child Left Behind", "link": "http:\/\/www.nytimes.com\/2009\/08\/28\/opinion\/28petrilli.html", "comments": "6", "user": "tokenadult", "score": "9", "time": "3 hours ago" }, { "title": "Return of the corporate giants", "link": "http:\/\/www.economist.com\/opinion\/displayStory.cfm?story_id=14303582&source=hptextfeature", "comments": "1", "user": "spooneybarger", "score": "4", "time": "1 hour ago" }, { "title": "Vidly: Twitvid.io (YC S08) Changes Names, Direction, And Gets Funding", "link": "http:\/\/www.techcrunch.com\/2009\/08\/28\/vidly-twitvidio-changes-names-direction-and-gets-funding\/", "comments": "11", "user": "drm237", "score": "24", "time": "6 hours ago" }, { "title": "Hulu Has More Viewers Than Time Warner Cable", "link": "http:\/\/www.businessinsider.com\/chart-of-the-day-hulu-has-more-watchers-than-time-warner-cable-2009-8", "comments": "1", "user": "fromedome", "score": "5", "time": "1 hour ago" }, { "title": "Does your e-mail reveal how productive you are?", "link": "http:\/\/www.slate.com\/id\/2226312\/pagenum\/all\/#p2", "comments": "10", "user": "robg", "score": "21", "time": "6 hours ago" }, { "title": "More Charts from HN Survey (Income, Age, Work Hours, Work Exp.)", "link": "http:\/\/www.vonsharp.net\/HNSurveyCharts.aspx", "comments": "26", "user": "viggity", "score": "41", "time": "9 hours ago" } ] },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment