Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 05-24-2025, 03:44 PM   #1
faceless007
Junior Member
faceless007 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2011
Device: nook Simple Touch
Backing up Pocket metadata from a Kobo

With the announced Pocket shutdown, I want to find a way to archive all my saved articles. The provided Export tool on Pocket's website only includes links, not the saved text of all the articles. But thanks to the Pocket integration with Kobo, I had previously downloaded all my thousands of saved articles (including text) onto my Kobo Libra itself. And now I want to try save as much as I can from the Pocket integration.

Plugging my Kobo into my computer, it looks like the articles themselves are stored at the path G:\.kobo\articles, each in a directory with a random number, that includes an index.html file with the text. But this doesn't include any of the metadata (article title, URL) so it's impossible to navigate. Does anyone know anything about how Pocket stores its metadata on the reader and is there a way to copy it?
faceless007 is offline   Reply With Quote
Old 05-24-2025, 04:25 PM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,354
Karma: 78877538
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
I think you'll find all the data in the KoboReader.sqlite database. Check the content table, especially the rows with MimeType=application/x-kobo-html+pocket
PeterT is offline   Reply With Quote
Advert
Old 05-24-2025, 05:29 PM   #3
faceless007
Junior Member
faceless007 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2011
Device: nook Simple Touch
Oh thanks for the tip! I cracked open the sqlite3 file and found 5119 rows matching that MimeType. But when I look at the schema for the content table, I don't see an obvious way to map a row to the numbered folders containing the text. There has to be some way the Kobo is looking up which folder to load for an article, is it somewhere else in the database? These are the columns on "content":

Code:
ContentID, ContentType, MimeType, BookID, BookTitle, ImageId, Title, Attribution, Description, DateCreated, ShortCoverKey, adobe_location, Publisher, IsEncrypted, DateLastRead, FirstTimeReading, ChapterIDBookmarked, ParagraphBookmarked, BookmarkWordOffset, NumShortcovers, VolumeIndex, ___NumPages, ReadStatus, ___SyncTime, ___UserID, PublicationId, ___FileOffset, ___FileSize, ___PercentRead, ___ExpirationStatus, FavouritesIndex, Accessibility, ContentURL, Language, BookshelfTags, IsDownloaded, FeedbackType, AverageRating, Depth, PageProgressDirection, InWishlist, ISBN, WishlistedDate, FeedbackTypeSynced, IsSocialEnabled, EpubType, Monetization, ExternalId, Series, SeriesNumber, Subtitle, WordCount, Fallback, RestOfBookEstimate, CurrentChapterEstimate, CurrentChapterProgress, PocketStatus, UnsyncedPocketChanges, ImageUrl, DateAdded, WorkId, Properties, RenditionSpread, RatingCount, ReviewsSyncDate, MediaOverlay, MediaOverlayType, RedirectPreviewUrl, PreviewFileSize, EntitlementId, CrossRevisionId, DownloadUrl, ReadStateSynced, TimesStartedReading, TimeSpentReading, LastTimeStartedReading, LastTimeFinishedReading, ApplicableSubscriptions, ExternalIds, PurchaseRevisionId, SeriesID, SeriesNumberFloat, AdobeLoanExpiration, HideFromHomePage, IsInternetArchive, titleKana, subtitleKana, seriesKana, attributionKana, publisherKana, IsPurchaseable, IsSupported, AnnotationsSyncToken, DateModified, StorePages, StoreWordCount, StoreTimeToReadLowerEstimate, StoreTimeToReadUpperEstimate, Duration, IsAbridged, SyncConflictType
faceless007 is offline   Reply With Quote
Old 05-25-2025, 12:40 AM   #4
compurandom
Wizard
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 1,007
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
You can also download everying in your pocket account from https://support.mozilla.org/kb/expor...ur-pocket-list
compurandom is offline   Reply With Quote
Old 05-25-2025, 08:31 AM   #5
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,354
Karma: 78877538
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
I believe you also need to select based on contenttype = 6.

ContentURL appears to be the original URL
ContentID is the name of the folder within .kobo/articles
PeterT is offline   Reply With Quote
Advert
Old 05-26-2025, 08:26 PM   #6
faceless007
Junior Member
faceless007 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2011
Device: nook Simple Touch
Quote:
Originally Posted by PeterT View Post
I believe you also need to select based on contenttype = 6.

ContentURL appears to be the original URL
ContentID is the name of the folder within .kobo/articles
Thanks for the tip! I was initially thrown because it seemed like a lot of rows had ContentId that did not match any of the folders in /articles, but then I realized I need to filter to articles I had still saved on my Kobo and not archived by including isDownloaded.

For anyone else wanting to do the same thing, this query run against KoboReader.sqlite will return metadata on any Pocket articles you have downloaded on your Kobo:

"SELECT ContentID, ContentURL, Title, Description, DateAdded, WordCount from content WHERE MimeType='application/x-kobo-html+pocket' AND ContentType = 6 AND isDownloaded = 'true';
faceless007 is offline   Reply With Quote
Old 05-26-2025, 09:12 PM   #7
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,354
Karma: 78877538
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Glad it helped. Again how I wish davidfor was still here; he'd have been able to answer that without even thinking and could have explained the difference between type 6 and 9..
PeterT is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backing up the library structure and metadata only (without the book files)? ktsl Calibre 7 04-26-2020 01:35 AM
Backing up metadata.db on exit qwertyuio Library Management 5 01-19-2020 06:55 PM
Touch Backing up Kobo Touch N905B firmware. Awk Kobo Developer's Corner 10 08-09-2019 03:59 AM
Arc Backing up Kobo Arc Gallery mesamuel Kobo Tablets 5 03-26-2013 02:22 PM
Backing Up kobo BEFORE Changing clintbradford Kobo Reader 1 07-02-2010 08:18 PM


All times are GMT -4. The time now is 06:16 AM.


MobileRead.com is a privately owned, operated and funded community.