Skip to content

Instantly share code, notes, and snippets.

@evantravers
Created May 28, 2020 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evantravers/54c7a69173dab4fb3e12576ca1605e92 to your computer and use it in GitHub Desktop.
Save evantravers/54c7a69173dab4fb3e12576ca1605e92 to your computer and use it in GitHub Desktop.
#!/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