https://github.com/chmac/scuttle2nb
Very loose scuttle to nb bookmark script
https://github.com/chmac/scuttle2nb
Last synced: about 1 year ago
JSON representation
Very loose scuttle to nb bookmark script
- Host: GitHub
- URL: https://github.com/chmac/scuttle2nb
- Owner: chmac
- License: agpl-3.0
- Created: 2021-07-15T18:31:21.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-16T14:01:45.000Z (almost 5 years ago)
- Last Synced: 2025-02-14T04:39:50.779Z (over 1 year ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scuttle2nb
A simple script to get scuttle data converted to
[nb](https://xwmx.github.io/nb/) format.
## Usage
The scuttle data should be exported from mysql with mysqldump something like:
mysqldump --tab /var/lib/mysql-files/foo foo
This assumes your scuttle data lives in a table called `foo`.
Then you can (hopefully) run this script like so:
- Clone this repo
- Install node v16 or later (or use nvm)
- Install yarn
- Run `yarn` to install dependencies
- Run `yarn build` to build the script
- Run the script like `/path/to/repo/dist/index.js --help`
```
Usage: scuttle2nb [options]
Options:
-d --data-path Path to the scuttle .txt files
-p --prefix Database table (and text filename) prefix (default: "")
-o --offline Perform all operations offline (bypasses nb commands)
-v --verbose Log more messages as the script proceeds
--dry-run Show the operations without performing them
-h, --help display help for command
```
## Known issues
- URLs must be valid
- If you have any non URL bookmarks (say javascript bookmarklets) these will
crash the script, suggest you remove manually them before import.
- Newlines in the `table.txt` file will crash the script
- Some mysql exports include newlines, so the content of a single row is split
over 2 lines. In this case, the script will crash, as the second line will
be interpeted as a new row. These need to be manually fixed before import.
## Support
There is no free support for this code.
I successfully used it to import ~1.8k bookmarks. But your mileage may vary. I
had all kinds of weird issues and bugs. There's no warranty and no support.