Export Firefox browsing history for Recoll to index.
A cron job runs every minute, exporting new history entries into Recoll's web queue format. Recoll indexes them on its next run.
curl -sL blem.li/recollfox | shThis downloads the export script, enables Recoll's web queue indexing, sets up a cron job (every minute), and backfills your existing history.
- Reads Firefox's
places.sqlite(read-only, safe while Firefox is running) - Exports each visited URL as a pair of files in
~/.recollweb/ToIndex/:_<hash>— metadata (URL, title, type)<hash>— HTML with title, description and the page's visible text
- Fetches each page itself (plain HTTP, no JavaScript), so content is not identical to what Firefox shows
- At most 20 pages per run (
RECOLLFOX_FETCH_MAX), 5 s timeout, 512 KB per page - Skips localhost and private/internal addresses; failed fetches fall back to title and description
- At most 20 pages per run (
- Tracks the last exported timestamp to only process new entries; a run that hits the fetch cap resumes on the next run
- Recoll picks up the queue files on its next indexing run
crontab -l | grep -v recollfox | crontab -
rm -rf ~/.local/share/recollfox