Export all GetPocket links (URL, title), including additional data (tags, time added, time updated), in Mozilla Bookmarks HTML format for import into the linkding bookmark manager.
Works on all platforms that support .NET 9.0.
- .NET 9.0 SDK
- Pocket API credentials (ConsumerKey and AccessToken) -> step-by-step guide Getting Started With the Pocket Developer API
-
Copy
src/appsettings.json.exampletosrc/appsettings.json. -
Add your Pocket API
ConsumerKeyandAccessTokentosrc/appsettings.json:{ "Pocket": { "ConsumerKey": "<your_consumer_key>", "AccessToken": "<your_access_token>" } }
dotnet build src/GetPocketExporter.csprojdotnet run --project src/GetPocketExporter.csproj- All GetPocket items are printed to the console.
- A Mozilla Bookmarks HTML file is created in
src/export/asYYYYMMDD_bookmarks.htmlfor import into linkding. - Raw Pocket API responses are exported as JSON files in
src/export/(as additional backup).
- AccessToken needs to be generated manually.
- Tokens are stored in
src/appsettings.jsonand should not be committed to version control because they are stored in plaintext. - GetPocket throws for some items a GatewayTimeExeption. In this case you need to finetune sort, count and offset in code and export step-by-step.
- Finetuning sort, count and offnet is not implemented yet as console params. You need to change it in the code.