Skip to content

gosuki Pocket import (CSV issue) #15

@mariusrugan

Description

@mariusrugan

hi,

Thanks a lot for your work!

it seems the CSV structure that you had from Pocket is completely different from what i have.

My export schema is (both in August 2025 and October 2025):

title,url,time_added,tags,status
https://handbrake.fr/,https://handbrake.fr/,1554542073,,unread

func importFromPocketCSV(ctx context.Context, c *cli.Command) error {
assumes

		url := row[1]
		title := row[2]
		// timeAdded := row[3]
		tags := row[4]
		desc := row[5]

also even on a sample file

url,title,time_added,tags,desc
https://handbrake.fr/,,,,

import is not working

~/go/bin/gosuki import pocket /Users/mariusrugan/Backups/pocket/20250822_pocket/debug.csv --debug=trace

imported 0 bookmarks

INFO ff: error: expanding base directory: lstat /Users/mariusrugan/Library/Application Support/Firefox: no such file or directory
importing from /Users/mariusrugan/Backups/pocket/20250822_pocket/debug.csv
DEBU db: initializing cacheDB
DEBU db: <memcache> opened at <file:memcache?mode=memory&cache=shared&_journal=MEMORY> with driver <sqlite3_gosuki>
DEBU db: checking schema version
DEBU db: <memcache> initialized
DEBU db: <memcache_l2> opened at <file:memcache_l2?mode=memory&cache=shared&_journal=MEMORY> with driver <sqlite3_gosuki>
DEBU db: checking schema version
DEBU db: <memcache_l2> initialized
INFO db: preloading <~/.local/share/gosuki/gosuki.db> to cache
DEBU db: initializing cacheDB
DEBU db: starting cache sync scheduler
DEBU db: <gosuki_db> opened at <file:/Users/mariusrugan/.local/share/gosuki/gosuki.db?_journal_mode=WAL&_mutex=no&cache=shared> with driver <sqlite3_gosuki>
DEBU db: checking schema version
DEBU db: schema version=3
DEBU db: syncing </Users/mariusrugan/.local/share/gosuki/gosuki.db> to <memcache>
DEBU db: syncing </Users/mariusrugan/.local/share/gosuki/gosuki.db> to <memcache_l2>
imported 0 bookmarks
DEBU db: closing DB <gosuki_db>

MacOS gosuki version v1.2.1 installed via go install

go install -tags systray github.com/blob42/gosuki/cmd/gosuki@latest

I'll probably dig into it and fix it & and PR back, it's just for you and anyone else a FYI.

Thanks a lot in advance for your time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions