first commit, shell scripts for google books search and download.
[gbooks] / bash / findGoogleBooks.sh
diff --git a/bash/findGoogleBooks.sh b/bash/findGoogleBooks.sh
new file mode 100755 (executable)
index 0000000..e0ecea8
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+# Search googlebooks
+
+APP_KEY="AIzaSyBhXxun8ggcSd6kiJLi7FDrWnXYI8_vk6E";
+SEARCH_STR="$@";
+wget --no-check-certificate -U "Mozilla 5.0" -qO- "https://www.googleapis.com/books/v1/volumes?q=${SEARCH_STR}&key=${APP_KEY}" | grep -E '("title"|"id")'
+