mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 14:35:52 +03:00
[GH-ISSUE #252] Improved import from Pocket (HTML export) #184
Labels
No labels
component:backend
component:builds
component:builds
component:extension
component:frontend
component:readability
database
database:mysql
database:postgres
database:sqlite
feature:ebooks
github_actions
good first issue
hacktoberfest
note:duplicate?
note:fixed?
note:out-of-scope?
os:windows
priority:high
priority:low
pull-request
resolution:as-intended
resolution:cant-reproduce
resolution:duplicate
resolution:fixed
resolution:wontfix
tag:TBD
tag:big-task
tag:help-wanted
tag:huge-data
tag:meta
tag:more-info
tag:next
tag:no-stale
tag:requires-migrations
tag:research
tag:security 🛡️
tag:stale
tag:waiting-for-assignee
type:bug
type:documentation
type:enhancement
type:meta
type:ux
user:cli
user:web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shiori#184
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dchakro on GitHub (May 29, 2020).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/252
Hi,
I am not familiar with Go or this project's codebase, but I am running shiori on docker.
I figured out a way to import pocket links where the links from pocket is used to popualate shiori's database.
Feature:
Import links from pocket so that they have the title, image (if any) and
Proposed Solution:
This shell script (uses commands bundled within the shiori docker):
shiori adddoes all the heavy lifting here. The shell script just parses the pocket output to fish out the html URLs.@deanishe commented on GitHub (Aug 6, 2020):
Nice solution. (I use something similar to import URLs from Pinboard.)
Would you add this to the wiki? It's a useful tip and I think more people will find it there.
@dchakro commented on GitHub (Aug 7, 2020):
Hi @deanishe
Thank you for taking responsibility of this lovely project.
I have happily added the instructions to the wiki.
https://github.com/go-shiori/shiori/wiki/Usage#improved-import-from-pocket
Marking this issue as closed.
@z3cko commented on GitHub (Jan 17, 2021):
Sadly the current importer does not take into account the title of the URLs as exported by pocket. I created a issue #292 describing the problem.
@robflate commented on GitHub (Feb 25, 2022):
I ran this and it correctly imported my bookmarks with images and the title but it did not import my tags.
I also ran the built in
shiori pocketmethod which correctly imported my tags but not the title or images.How can I get titles, images and tags from Pocket? Thanks.
Note: I'm running the latest version in docker using a MYSQL database.
@rafacouto commented on GitHub (Jun 3, 2025):
I've succesfully imported 1338 bookmarks with the exported csv from pocket (title and tags included).
Write this python script as
pocket_csv.pyand adapt theshiori_cmdvariable to your shiori command:To execute the import with the exported csv from
getpocket:Happy bookmarking!
@LoisGNS commented on GitHub (Jun 14, 2025):
I'm not sure there's a "cat" command available in the Windows command line. Does the above work only in Docker (which I don't use)? In general, it seems that the "add" command does what I want more than the pocket import, since the add command creates the archive & ebook, while the import doesn't seem to. I'd like to be able to feed a list of titles & urls (don't really use tags) and have it add them all & create the archives & ebooks from them. Even just the urls without titles would be ok.
@rafacouto commented on GitHub (Jun 19, 2025):
Sorry, I don't use Windowz so I can't say how to use this shell commands there. It was tested on Debian 12 (python 3.11) and probably runs in any GNU/Linux with python 3.
It works with docker and command version: please, modify the
shiori_cmdto your shiori setup.You could modify the python by adding these options:
@LoisGNS commented on GitHub (Jun 20, 2025):
I understand how to modify the shiori_cmd; what I don't get is this part (since you need linux or maybe docker):
Windows doesn't have a "cat" command, and I'm not sure what "sh" is for.