https://github.com/ehamiter/bookerics-importer
blazing fast bookerics importer
https://github.com/ehamiter/bookerics-importer
Last synced: 11 months ago
JSON representation
blazing fast bookerics importer
- Host: GitHub
- URL: https://github.com/ehamiter/bookerics-importer
- Owner: ehamiter
- Created: 2024-06-16T20:26:30.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-31T21:47:33.000Z (almost 2 years ago)
- Last Synced: 2025-01-14T12:53:54.459Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bookerics-importer
blazing fast [bookerics](https://bookerics.com) importer
## what?
This takes in a ``-compliant
generated file from a browser or web service like pinboard.in and transmogrifies it into a sqlite3 db file, suitable for use in a web application like bookerics™.
## table structure
```
PRAGMA table_info(bookmarks);
[
(0, 'id', 'INTEGER', 0, None, 1),
(1, 'title', 'TEXT', 1, None, 0),
(2, 'description', 'TEXT', 0, None, 0),
(3, 'url', 'TEXT', 1, None, 0),
(4, 'thumbnail_url', 'TEXT', 0, None, 0), #
(5, 'tags', 'TEXT', 0, None, 0),
(6, 'created_at', 'TEXT', 1, "datetime('now')", 0),
(7, 'updated_at', 'TEXT', 1, "datetime('now')", 0)
]
```
## buildage
```
❯ cargo build --release
```
executable will be built in `./target/relase/`. link it somewhere or move it somewhere on your PATH
## usage
```
❯ bookerics_importer --help
bookerics_importer 0.1.0
USAGE:
bookerics_importer
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
ARGS:
The path to the bookmarks HTML file
The path to the output SQLite database file
```