Comment on Is it okay to have more than one account on here?

<- View Parent
historicaldocuments@lemmy.world ⁨1⁩ ⁨day⁩ ago

Under the settings menu you can export your settings as a JSON file.

# Using python, read in a JSON file.  Immediately write it
# back out as a new file using indent=2 to "pretty print"
# the output so it's human and computer readable.
# With care this can be edited to add/remove blocks
# and reimported back into lemmy.  I've never used
# the import process, so use with care.
import json
infile = <your filename here>
outfile = <where you want it here>
with open(infile, "r") as i:
    data = json.load(i)
with open(outfile, "w") as o:
    json.dump(data, o, indent=2)

source
Sort:hotnewtop