Created
October 23, 2014 03:46
-
-
Save duydo/6e0986bbe4e5883fe3ce to your computer and use it in GitHub Desktop.
Find RSS Feeds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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