Skip to content

Instantly share code, notes, and snippets.

@Aerex
Aerex / wallabag2shiori
Last active September 29, 2025 15:33
Import wallabag json file into a shiori instance.
#!/bin/bash
help() {
cat <<HELP
wallbag2shiori [options] <JSON_FILE>
Import wallabag json file into shiori instance.
-h Print the help menu
-v Enable verbose mode
function flattenArr(input, output){
if(!Array.isArray(input)){
return input;
}
var a = null;
for(var i = 0; i < input.length; i++){
a = flattenArr(input[i], output);
if(a){
output.push(a);
}