GenericUrlScopeResolver
Generic implementation that should satisfy most common site adherence scenarios.
Notesโ
Determines whether a discovered URL falls within the scope of the crawl by controlling domain, subdomain, port, and protocol adherence relative to the start URLs. Optionally restricts crawling to URLs listed in a detected sitemap.
Usageโ
- YAML
- JSON
- XML
class: GenericUrlScopeResolver
includeSubdomains: false
stayOnDomain: false
stayOnPort: false
stayOnProtocol: false
stayOnSitemap: false
{
"class": "GenericUrlScopeResolver",
"includeSubdomains": false,
"stayOnDomain": false,
"stayOnPort": false,
"stayOnProtocol": false,
"stayOnSitemap": false
}
<urlScopeResolver>
<class>GenericUrlScopeResolver</class>
<includeSubdomains>false</includeSubdomains>
<stayOnDomain>false</stayOnDomain>
<stayOnPort>false</stayOnPort>
<stayOnProtocol>false</stayOnProtocol>
<stayOnSitemap>false</stayOnSitemap>
</urlScopeResolver>
Propertiesโ
| Property | Type | Required | Default |
|---|---|---|---|
includeSubdomains | boolean | No | false |
stayOnDomain | boolean | No | false |
stayOnPort | boolean | No | false |
stayOnProtocol | boolean | No | false |
stayOnSitemap | boolean | No | false |
Property Detailsโ
includeSubdomainsโ
Whether sub-domains are considered to be the same as a start URL domain.
stayOnDomainโ
Whether the crawler should always stay on the same domain name as the domain of each start URLs. By default the crawler will try follow any discovered links not otherwise rejected by other configuration settings (like regular filtering rules you may have).
stayOnPortโ
Whether the crawler should always stay on the same port as the port for each URL specified as a start URL. By default the crawler will try follow any discovered links not otherwise rejected by other settings (like regular filtering rules you may have).
stayOnProtocolโ
Whether the crawler should always stay on the same protocol as the protocol for each URL specified as a start URL. By default the crawler will try follow any discovered links not otherwise rejected by other settings (like regular filtering rules you may have).
stayOnSitemapโ
If a sitemap is provided or detected for a site, only crawl URLs that are defined in that sitemap.