Coder Social home page Coder Social logo

riichard / pocket-sh-add Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 3.0 6 KB

Shell script to bookmark URLs to getpocket.com. No libraries, just shell & curl.

License: MIT License

Shell 100.00%
pocket pocket-api shell newsboat bookmarks-manager bookmarklet getpocket

pocket-sh-add's Introduction

Pocket-sh-add

Add URLs to your pocket with a simple shell script, and some curl. No python installs, no dependencies, and no javascript!

Integrates fantastically with any UNIX operating system, seemlessly connects to lynx, mutt, newsbeuter, newsboat!

Installation

Authenticate the user

This will propegate a config file in ~/.pocketshrc with your token. Activate the link opened in your browser and hit enter.

./authenticate.sh

Add a URL

Add any URL with the add.sh script.

./add.sh https://github.com/riichard/pocket-sh-add/blob/master/README.md

Add a URL with tags

./add.sh https://slate.com/human-interest/2019/11/50-best-nonfiction-books.html "books, nonfiction"

pocket-sh-add's People

Contributors

riichard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pocket-sh-add's Issues

how to specify tags in a curl post api request

Thank you for your work on this fantastic simple and usefull tool.

It really does what it says in the can :-)

simple shell script, and some curl. No python installs, no dependencies, and no javascript!

Integrates fantastically with any UNIX operating system, seemlessly connects to lynx, mutt, newsbeuter, newsboat!

I'm not very skilled with neither curl nor the pocket api. But I am almost sure there must be a way to specify "tags" to add to a URL when you want to save to getpocket.com using just curl.

Would it be possible to make this tool, optionaly read a second (or third, fourth etc) argument as tags ?

pocket-sh-add.sh $1
pocket-sh-add.sh $1 [$2 $3 ...]

if only one argument is passed, it is expected to be a URL
if 2 or more arguments are passed the 2nd, 3rd etc, are expected to be tags.

PS: example from a python cli tool,
pocket-cli add -u https://myarticle.com/ --tags=tech
pocket-cli add -u https://myarticle.com/ --tags=tech,news,later
https://github.com/rakanalh/pocket-cli (archived but still working fine)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.