Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import from Pocket: Pocket now mails you zipped CSV files #570

Closed
daniel-l opened this issue Oct 19, 2024 · 6 comments
Closed

Import from Pocket: Pocket now mails you zipped CSV files #570

daniel-l opened this issue Oct 19, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@daniel-l
Copy link

After being unable to export my pocket saves with their export tool (way more than the tool's limit of 5000 saves) I contacted the Pocket support. They then revamped the export tool: upon requesting an export they now mail you a zip file which contains csv files, each containing 10.000 pocket saves + the first row containing the column's titles.

Hoarder's import tool still expects Pocket's old html format; this needs to be updated.

The csv files are comma separated and formatted like this:

title,url,time_added,cursor,tags,status
Hoarder App,https://github.com/hoarder-app,1728576752,7187623980,,unread
"hoarder-app/hoarder: A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search",https://github.com/hoarder-app/hoarder,1728576752,7187623980,opensource|withÄumlaut|with space,unread
Some Website Title,"https://somewebsite.com/with,commas,in,the,url",1728576752,7187623980,,unread

Multiple tags are separated by the pipe symbol "|". Tags can contain german umlauts (e.g. äÄöÖüÜ) and spaces (see example above). If some part of the saved item (e.g. title, url) contains a comma, the whole part is enclosed in quotation marks (again, see examples above).

@MohamedBassem MohamedBassem added the feature request New feature or request label Oct 19, 2024
@jacobslusser
Copy link

I'll note that the Pocket website still says the export will be in HTML format, but the file you actually receive is a .csv in a .zip as described by @daniel-l. It took me a while to figure out that I wasn't doing something wrong -- it was Pocket that changed.

@daniel-l
Copy link
Author

Thanks for the clarification. I wasn't quite sure whether there was a threshold of saved websites below which Pocket still generates the old HTML format or now always sends out zipped csv files vie e-mail. I guess it's latter. Here's a full quote of the mentioned support ticket which explains the new process:

I’m happy to let you know that our developers have updated the export tool! You can now export your Pocket data without any size limitations here: https://getpocket.com/export

When you initiate the export, a zip archive will be sent to your Pocket email. If you’ve previously requested an export for your lists, please try again now.

During the export, you will be provided with a tracking ID. If you don’t receive the export after 30 days, please share this ID with us, and we'll be happy to assist you further.

@Austinzveare
Copy link

I just set up Hoarder with the intention of importing from Pocket and just found this issue. Is there a way to import the CSV Pocket sends?

@fingon
Copy link

fingon commented Nov 3, 2024

Not officially. I ran a shell command to add links and then produced sql with Python which updates create time and archive flag. Tags I do not use much so I left them for later.

@MohamedBassem
Copy link
Collaborator

I can't seem to export an export with multiple tags, can someone show me how they export a bookmark with multiple tags? What's the delimiter used between the tags?

@MohamedBassem MohamedBassem added bug Something isn't working and removed feature request New feature or request labels Nov 3, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Hoarder's Roadmap Nov 3, 2024
@daniel-l
Copy link
Author

daniel-l commented Nov 3, 2024

See the example in my initial post. The delimiter is the pipe symbol ("|"):
tag1|tag with spaces|another tag

Edit: sorry, just saw that you found that yourself and already implemented it 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

6 participants
@daniel-l @jacobslusser @fingon @MohamedBassem @Austinzveare and others