blob: a5439c5aa82bd25d3435df659565b9ad4f7ab5b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#! /bin/sh
# usage: GfindFeeds4bot QUERY
set -euf
export query="$1"
export data="$(
curl -sS "https://www.google.com/uds/GfindFeeds?v=1.0&q=$query"
)"
node <<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
|