Skip to main content
100%

A vanilla py-script to download all Pocket.com data via API.

✓ Published0🌍 Public
BBastiTee
Last edited Jul 19, 2022
Created on Jul 19, 2022

This example demonstrates how to download a complete archive of all Pocket.com saved articles using the Pocket API. It shows the OAuth authentication flow, which opens a browser for user approval, then retrieves every article in batches of ten, displaying each article’s title and URL as it processes them. The script uses Python’s `requests` library to make HTTP POST calls to the Pocket API endpoints, along with the `json` module to parse responses and `subprocess` to trigger browser opening. It saves the full article list as a JSON file.

AI-generated description

Similar vizzes