Docs.rs
crawlkit-parser-0.3.1
crawlkit-parser 0.3.1
Permalink
Docs.rs crate page
MIT
14 July 2026
Links
Repository
crates.io
Source
Owners
cyberdoors
Dependencies
crawlkit-core ^0.3.0
normal
dom_smoothie ^0.18.0
normal
lazy_static ^1
normal
regex ^1
normal
scraper ^0.22
normal
serde ^1
normal
serde_json ^1
normal
skyscraper ^0.6
normal
thiserror ^2
normal
tracing ^0.1
normal
url ^2
normal
Versions
64.13%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
determine_link_type
crawlkit_
parser
0.3.1
In crawlkit_
parser::
links
crawlkit_parser
::
links
Function
determine_
link_
type
Copy item path
Source
pub fn determine_link_type(url: &
str
, base_url:
Option
<&
Url
>) ->
LinkType
Expand description
判断链接类型(内部 / 外部 / 未知)。
内部链接:与 base_url 域名相同(包括 www 前缀差异)
外部链接:不同域名,并且与 base_url 属于不同的一级域名
子域名链接与主站同属一个一级域名时视为内部链接