Created
May 28, 2020 19:25
-
-
Save evantravers/54c7a69173dab4fb3e12576ca1605e92 to your computer and use it in GitHub Desktop.
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/bash | |
#basic newsboat bookmark plugin for instapaper | |
username=$(op get item "instapaper" | jq '.details.fields[] | select(.designation=="username").value' | tr -d '"') | |
password=$(op get item "instapaper" | jq '.details.fields[] | select(.designation=="password").value' | tr -d '"') | |
url="$1" | |
title="$2" | |
curl --data-urlencode "title=$title" \ | |
--data-urlencode "url=$url" \ | |
"https://www.instapaper.com/api/add?username=${username}&password=${password}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment