[PR #528] [MERGED] Add parser for Pocket API #4227

Closed
opened 2026-03-15 01:33:06 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ArchiveBox/ArchiveBox/pull/528
Author: @mAAdhaTTah
Created: 11/7/2020
Status: Merged
Merged: 12/5/2020
Merged by: @pirate

Base: v0.5.0Head: pull-from-pocket-api


📝 Commits (1)

  • ac7ad9e Add parser for Pocket API

📊 Changes

4 files changed (+122 additions, -1 deletions)

View changed files

📝 archivebox/config.py (+4 -1)
📝 archivebox/parsers/__init__.py (+2 -0)
archivebox/parsers/pocket_api.py (+115 -0)
📝 setup.py (+1 -0)

📄 Description

Pass a url like pocket://Username to import that username's archived Pocket
library. Tokens need to be stored in ArchveBox.conf with the following keys:

POCKET_CONSUMER_KEY = key-from-custom-pocket-app
POCKET_ACCESS_TOKENS = {"YourUsername": "pocket-token-for-app"}

POCKET_ACCESS_TOKENS MUST be on a single line, or the JSON will be
misinterpreted by the parser as a new key/value pair.

Summary

I'm not 100% this is the implementation, but my experience w/ the API is it's more
reliable & complete than the feed export. It would be nice to use this as a feed source
but the last since value would need to be persisted somewhere.

Related issues

None, I wrote this to import my Pocket library locally and was wondering if this would be useful.

Changes these areas

  • Bugfixes
  • Feature behavior
  • Command line interface
  • Configuration options
  • Internal architecture
  • Snapshot data layout on disk

🔄 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/ArchiveBox/ArchiveBox/pull/528 **Author:** [@mAAdhaTTah](https://github.com/mAAdhaTTah) **Created:** 11/7/2020 **Status:** ✅ Merged **Merged:** 12/5/2020 **Merged by:** [@pirate](https://github.com/pirate) **Base:** `v0.5.0` ← **Head:** `pull-from-pocket-api` --- ### 📝 Commits (1) - [`ac7ad9e`](https://github.com/ArchiveBox/ArchiveBox/commit/ac7ad9e9425bde8b0c4a6a52c6393df0ffb7eceb) Add parser for Pocket API ### 📊 Changes **4 files changed** (+122 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `archivebox/config.py` (+4 -1) 📝 `archivebox/parsers/__init__.py` (+2 -0) ➕ `archivebox/parsers/pocket_api.py` (+115 -0) 📝 `setup.py` (+1 -0) </details> ### 📄 Description Pass a url like `pocket://Username` to import that username's archived Pocket library. Tokens need to be stored in ArchveBox.conf with the following keys: ``` POCKET_CONSUMER_KEY = key-from-custom-pocket-app POCKET_ACCESS_TOKENS = {"YourUsername": "pocket-token-for-app"} ``` `POCKET_ACCESS_TOKENS` MUST be on a single line, or the JSON will be misinterpreted by the parser as a new key/value pair. # Summary I'm not 100% this is the implementation, but my experience w/ the API is it's more reliable & complete than the feed export. It would be nice to use this as a feed source but the last `since` value would need to be persisted somewhere. # Related issues None, I wrote this to import my Pocket library locally and was wondering if this would be useful. # Changes these areas - [ ] Bugfixes - [x] Feature behavior - [ ] Command line interface - [ ] Configuration options - [ ] Internal architecture - [ ] Snapshot data layout on disk --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-15 01:33:06 +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/ArchiveBox#4227
No description provided.