Skip to content

Instantly share code, notes, and snippets.

@duydo
Created October 23, 2014 03:46
Show Gist options
  • Save duydo/6e0986bbe4e5883fe3ce to your computer and use it in GitHub Desktop.
Save duydo/6e0986bbe4e5883fe3ce to your computer and use it in GitHub Desktop.
Find RSS Feeds
#! /bin/sh
set -euf
export query="$1"
export data="$(
curl -sS "https://www.google.com/uds/GfindFeeds?v=1.0&q=$query"
)"
nodejs <<EOF
query = process.env.query
data = JSON.parse(process.env.data)
data.responseData.entries.forEach(function (entry, index) {
console.log(query + '|' + index + '|' + entry.url)
})
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment