---
title: Gemini Crawling Websites
description: Crawl a public site into an inspectable Markdown workspace, clean it with regex transforms, then hand it to Folder import.
---
## Define crawl boundaries
Enter a **Start URL** and the import folder is pre-populated from its host. A port uses a dash, so
`http://localhost:5000` becomes `localhost-5000`. Crawls are stored beneath:
:::copy
`App_Data/chat/user//gemini/imports//`
:::
The common controls cover the safety rules most crawls need:
- **Include / Exclude paths** use folder-style globs such as `/docs/**` and `/archives/**`.
- **Max pages** and **Max depth** bound the crawl.
- Query strings can be ignored, selectively allowed, or included with tracking/session parameters
excluded and variants capped per path.
- Crawls stay on the same origin unless named supporting hosts are allowed.
- `robots.txt`, `noindex`, `nofollow`, canonical URLs, HTML content types, and duplicate extracted
content are handled explicitly.
- Ordered additional rules can **Exclude** a match or **Follow links only** without saving the page.
## Transform and inspect extracted pages
Regex transforms provide an ordered, repeatable cleanup pass over the crawled Markdown. Each rule
defines a file glob, regex pattern, replacement, and flags:
- `g` - global
- `i` - ignore case
- `m` - multiline
- `s` - `.` matches line breaks
Replacement capture groups are supported.
For example, pattern `\b0(\d)\b` with replacement
`\1.` converts `01` to `1.`.
**Apply transforms** updates the workspace and saves the rules to `import.json`. **View crawled
pages** opens a large read-only browser with directories on the left and vertically scrollable file
content on the right. When the content is ready, **Import folder** opens Folder import with the
workspace path and metadata pre-populated.
Saved crawl imports are deep-linkable. Reopen one to load its configuration, make more
transformations, inspect the result, and hand it back to Folder import whenever the website changes.
Because the workspace is imported through the normal folder pipeline, everything in
[Importing Documents](/chat/gemini-imports) applies to it - previews, recurring synchronization,
trusted roots, and `import.json` manifests. Crawl frontmatter supplies per-page metadata described
in [Metadata & Source URLs](/chat/gemini-metadata), where a crawled page's own source URL becomes
the citation link.
## Saved crawl settings
Crawls and folder imports share [Saved imports](/chat/gemini-imports#saved-imports) and their portable
`import.json`. **Edit crawl settings** and **Edit folder settings** move between forms without losing
the shared configuration. **Save changes** updates settings without indexing; Preview and Run save
the current settings first. **Sync Store** refreshes enabled crawls using saved rules and transforms.
Loading a crawl workspace outside the user's private Gemini imports directory copies its manifest,
Markdown, and nested metadata to a private named workspace. The source remains untouched; reloading
refreshes the same private copy instead of creating suffixed duplicates. Repeated imports reuse
document identities and resume pending uploads.