Skip to content

Instantly share code, notes, and snippets.

@nicolevanderhoeven
nicolevanderhoeven / downloadfirebase.py
Last active June 12, 2023 18:24
Download Roam images locally for use with Obsidian vault
# Opens files in directory, outputs firebase URLs to a file, downloads them, and replaces the links with a link to the new files.
# To use, replace PATH in the variable vaultDir with your vault's root directory.
# This automatically puts filenames in /assets - change the newFilePath variable if you want to change this
import re
import glob
import os
import requests
import calendar
import time