summaryrefslogtreecommitdiff
path: root/help/CrawlCheck_p.md
blob: 0ed414c9d756dc9c1f8ca958ccc6c6514d463eb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
page: htroot/CrawlCheck_p.html
help: help/CrawlCheck_p.md
title: Crawl Check
package: crawler
access: admin
kind: admin-page
backend_java: source/net/yacy/htroot/CrawlCheck_p.java
---

# Crawl Check

## Purpose

Crawl Check tests how YaCy would treat a URL before a crawl is started.

Use it to catch malformed URLs, blocked targets, parser issues, or rule conflicts before work enters the queue.

## What You Can Do Here

- Paste one or more candidate start URLs and ask YaCy how it would handle them.
- Confirm that URL syntax, crawler user-agent choice, and crawl rules allow the target.
- Use the result to repair the crawl plan before creating queue work.

## Page Architecture

Crawl Check is a preflight page. It submits candidate URLs to the same kind of URL-normalization and crawler-decision logic used later by crawl start pages, but the goal is diagnosis rather than building a full crawl queue.

## Correct Use

Paste exact URLs, one per line when checking several targets. Use the same crawler agent that the real crawl would use. Fix rejected or surprising URLs before starting a crawl, because bad start URLs create empty queues or noisy crawl failures.

## Access And Safety

Administrator access is required. YaCy protects `_p` pages as administration pages.

Protected related endpoint(s): `/CrawlCheck_p.html`.

## Automation And API

Page backend: `source/net/yacy/htroot/CrawlCheck_p.java`.

| Endpoint | Method | Access | Backend |
| --- | --- | --- | --- |
| `/CrawlCheck_p.html` | `POST` | admin | `source/net/yacy/htroot/CrawlCheck_p.java` |

### Parameter Guide

The table explains values that an agent or script must set deliberately. Parameters not relevant to a task should be omitted or left at the page default.

| Parameter | Meaning and valid values | Care |
| --- | --- | --- |
| `crawlingURLs` | List of possible crawl start URLs. | Set only when this option is part of the intended request; otherwise omit it and let YaCy use the page default. |
| `crawlcheck` | List of possible crawl start URLs. | Set only when this option is part of the intended request; otherwise omit it and let YaCy use the page default. |
| `agentName` | Crawler user-agent profile used for outgoing HTTP requests. Choose a profile that matches the desired identity and politeness behavior. | Set only when this option is part of the intended request; otherwise omit it and let YaCy use the page default. |

Example request shape:

```http
POST /CrawlCheck_p.html
Content-Type: application/x-www-form-urlencoded

crawlingURLs=...&crawlcheck=...&agentName=...
```

## What To Expect

The response should explain how YaCy interprets each submitted URL and whether it is suitable as a crawl target. It should not be treated as proof that the full site has been indexed.

## Related Pages

- Related crawler work is usually reached through `Crawler_p.html`, `CrawlStartSite.html`, `CrawlStartExpert.html`, or crawl result and queue monitors.