[PR #63] [CLOSED] new pocket command #508

Closed
opened 2026-02-25 23:34:33 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-shiori/shiori/pull/63
Author: @s-frostick
Created: 3/8/2018
Status: Closed

Base: masterHead: pocket


📝 Commits (8)

  • 09b4d83 new pocket command allows user to import items from pocket into shiori
  • 7017639 removing useless println
  • 6fb00a2 fixed formating issue
  • 234566e Merge branch 'master' into pocket
  • 6448a6e added command line flag to define which tag to import
  • 489e57c fixed formatting
  • c01d60c Merge branch 'master' into pocket
  • 25ac5ab Merge branch 'master' into pocket

📊 Changes

3 files changed (+270 additions, -1 deletions)

View changed files

cmd/pocket.go (+251 -0)
📝 cmd/root.go (+6 -1)
📝 cmd/utils.go (+13 -0)

📄 Description

#29 Added pocket integration using https://github.com/motemen/go-pocket.

User needs to set a consumer key or create a new one; https://getpocket.com/developer/apps/new

Then can run the following commands

shiori pocket key <APIKEY>
to set the api key

shiori pocket login

The login command will open a browser where the user can login to pocket to authorize the request.

The accesstoken and consumer key are stored in $HOME/.shiori/config.json

Then can run
shiori pocket import
to actually import items from pocket

by default this will not import items that have been archived in pocket, for this run with

shiori pocket import --all

If just want to import items with a particular tag can use

shiori pocket import --tag <TAG>

Note: the import command imports tags with spaces from pocket although the current web interface is unable to handle these correctly.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-shiori/shiori/pull/63 **Author:** [@s-frostick](https://github.com/s-frostick) **Created:** 3/8/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `pocket` --- ### 📝 Commits (8) - [`09b4d83`](https://github.com/go-shiori/shiori/commit/09b4d83736adee0720ad11694f0ae79d135bbcbf) new pocket command allows user to import items from pocket into shiori - [`7017639`](https://github.com/go-shiori/shiori/commit/7017639616e7da6032b96f11cdfa849cd0f3df37) removing useless println - [`6fb00a2`](https://github.com/go-shiori/shiori/commit/6fb00a290560154183139b9010c0aa59ee37dec0) fixed formating issue - [`234566e`](https://github.com/go-shiori/shiori/commit/234566e81b2a779c7ccc408b367ec8b163e27a0d) Merge branch 'master' into pocket - [`6448a6e`](https://github.com/go-shiori/shiori/commit/6448a6e3a0ec038cc3ab024d861de214daa1029d) added command line flag to define which tag to import - [`489e57c`](https://github.com/go-shiori/shiori/commit/489e57ccd20af9b21fe764f48b3cab5aa528e187) fixed formatting - [`c01d60c`](https://github.com/go-shiori/shiori/commit/c01d60cc0ce34814e339cd8e03c9d091df4c7fa7) Merge branch 'master' into pocket - [`25ac5ab`](https://github.com/go-shiori/shiori/commit/25ac5ab72c4902ad4aff3398b4656f2a505f03b1) Merge branch 'master' into pocket ### 📊 Changes **3 files changed** (+270 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `cmd/pocket.go` (+251 -0) 📝 `cmd/root.go` (+6 -1) 📝 `cmd/utils.go` (+13 -0) </details> ### 📄 Description #29 Added pocket integration using [https://github.com/motemen/go-pocket](url). User needs to set a consumer key or create a new one; https://getpocket.com/developer/apps/new Then can run the following commands `shiori pocket key <APIKEY>` to set the api key `shiori pocket login` The login command will open a browser where the user can login to pocket to authorize the request. The accesstoken and consumer key are stored in $HOME/.shiori/config.json Then can run `shiori pocket import` to actually import items from pocket by default this will not import items that have been archived in pocket, for this run with `shiori pocket import --all` If just want to import items with a particular tag can use `shiori pocket import --tag <TAG>` Note: the import command imports tags with spaces from pocket although the current web interface is unable to handle these correctly. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 23:34:33 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shiori#508
No description provided.