https://github.com/n8henrie/pocket.sh
Add multiple items to pocket at once via their API
https://github.com/n8henrie/pocket.sh
Last synced: 3 months ago
JSON representation
Add multiple items to pocket at once via their API
- Host: GitHub
- URL: https://github.com/n8henrie/pocket.sh
- Owner: n8henrie
- License: mit
- Created: 2022-01-21T21:30:40.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-21T21:34:39.000Z (over 3 years ago)
- Last Synced: 2024-12-27T16:26:51.473Z (5 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## pocket.sh
Bash script to read urls from stdin and batch add them to pocket. Working on
MacOS 12.1.Dependencies:
- bash 5 (e.g. via homebrew)
- Create an API consumer_key and set it in `config.env` (copy from
`config-sample.env`)
- Needs at least `modify` scope
- https://getpocket.com/developer/apps/Usage example:
```console
$ curl --silent https://ianthehenry.com/posts/how-to-learn-nix/ |
xmllint --html --xpath '//a[contains(@href, "how-to-learn-nix")]/@href' - |
awk -F'"' '{ print "https://ianthehenry.com" $(NF-1) }' |
./pocket.sh
```## Acknowledgments:
- https://getpocket.com/
- https://www.jamesfmackenzie.com/getting-started-with-the-pocket-developer-api/