PowerShell scripts for automatically tagging Raindrop bookmarks by root domain.
This project:
- reads all bookmarks from the Raindrop API
- extracts a root-domain tag such as
github.io,pages.dev, orblogspot.com - applies a fallback tag such as
unprocessed-domainwhen a root domain cannot be safely determined - skips bookmarks that are already correctly tagged
- supports Windows Task Scheduler for daily automation
- includes retry, timeout, and malformed-tag cleanup logic
This is a third-party automation script and is not affiliated with Raindrop.io.
Invoke-RaindropRootDomainAutotag.ps1- main script
- fetches bookmarks, calculates tags, and updates Raindrop
Save-RaindropToken.ps1- securely stores a Raindrop API token for the current Windows user
Install-RaindropDailyTask.ps1- installs a daily Windows scheduled task
Run-RaindropAutotagHidden.example.ps1- optional wrapper script template with logging
- Windows PowerShell 5.1 or later
- A Raindrop API token
- Internet access when the script runs
Run:
powershell -ExecutionPolicy Bypass -File ".\Save-RaindropToken.ps1"This stores your token at:
%LOCALAPPDATA%\RaindropRootDomainAutotag\token.secure.txt
Run:
powershell -ExecutionPolicy Bypass -File ".\Invoke-RaindropRootDomainAutotag.ps1" -DryRun -FallbackTag "unprocessed-domain" -RequestTimeoutSec 45 -MaxRetries 4 -RetryDelaySec 3This will scan bookmarks and show what would be changed, without writing anything.
Run:
powershell -ExecutionPolicy Bypass -File ".\Invoke-RaindropRootDomainAutotag.ps1" -FallbackTag "unprocessed-domain" -RequestTimeoutSec 45 -MaxRetries 4 -RetryDelaySec 3Run:
powershell -ExecutionPolicy Bypass -File ".\Install-RaindropDailyTask.ps1" -TaskName "Raindrop Root Domain Autotag" -Time "04:00" -FallbackTag "unprocessed-domain" -ForceThis installs a daily task that directly runs the main script.
If you want a separate wrapper script with log output, copy:
Run-RaindropAutotagHidden.example.ps1
Rename it to:
Run-RaindropAutotagHidden.ps1
Then edit the $mainScript path inside it to match your local script path.
Log files are stored at:
%LOCALAPPDATA%\RaindropRootDomainAutotag\Logs
The script uses the fallback tag when it cannot safely produce a normal root-domain tag, for example:
- IP-based links
localhost- malformed hosts
- unsupported host formats
- Do not commit your token file.
- Do not commit personal logs.
- Do not commit your own bookmark export data unless you intentionally want it public.
MIT