aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-04-02 17:52:04 +0100
committerMohamedBassem <me@mbassem.com>2024-04-02 17:52:04 +0100
commit457c3447c43193d360fd8fb90527937e789e3872 (patch)
tree82105bcc505ea1d222c67f16d4e69e29d5ff99db /docs
parent3d5055cc327f8c77ac74cfe870442cc150faa0dd (diff)
downloadkarakeep-457c3447c43193d360fd8fb90527937e789e3872.tar.zst
docs: Add some wiki page about importing links from chrome. #7
Diffstat (limited to 'docs')
-rw-r--r--docs/docs/10-import.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/docs/10-import.md b/docs/docs/10-import.md
new file mode 100644
index 00000000..044afe7f
--- /dev/null
+++ b/docs/docs/10-import.md
@@ -0,0 +1,28 @@
+# Importing Bookmarks
+
+:::warning
+Currently importing bookmarks requires some technical knowledge and might not be very straightforward for non-technical users. Don't hesitate to ask questions in github discussions or discord thouh.
+:::
+
+## Import from Chrome
+
+- Open Chrome and go to `chrome://bookmarks`
+- Click on the three dots on the top right corner and choose `Export bookmarks`
+- This will download an html file with all of your bookmarks.
+- To extract the links from this html file, you can run this simple bash one liner (if on windows, you might need to use [WSL](https://learn.microsoft.com/en-us/windows/wsl/install)): `cat <file_path> | grep HREF | sed 's/.*HREF="\([^"]*\)".*/\1/' > all_links.txt`.
+- This will create a file `all_links.txt` with all of your bookmarks one per line.
+- To import them, we'll use the [hoarder cli](https://docs.hoarder.app/command-line). You'll need a Hoarder API key for that.
+
+Run the following command to import all the links from `all_links.txt`:
+
+```
+cat all_links.txt | xargs -I{} docker run --rm ghcr.io/mohamedbassem/hoarder-cli:release --api-key <key> --server-addr <addr> bookmark add --link {}
+```
+
+## Import from other platforms
+
+If you can get your bookmarks in a text file with one link per line, you can use the following command to import them using the [hoarder cli](https://docs.hoarder.app/command-line):
+
+```
+cat all_links.txt | xargs -I{} docker run --rm ghcr.io/mohamedbassem/hoarder-cli:release --api-key <key> --server-addr <addr> bookmark add --link {}
+```