Skip to content

Commit

Permalink
chore(website): add reset_status
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Feb 18, 2025
1 parent ba8f9d9 commit 3b5cbd7
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 12 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spider/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider"
version = "2.28.7"
version = "2.28.8"
authors = [
"j-mendez <[email protected]>"
]
Expand Down
6 changes: 6 additions & 0 deletions spider/src/website.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,12 @@ impl Website {
&self.status
}

/// Reset the active crawl status to bypass websites that are blocked.
pub fn reset_status(&mut self) -> &CrawlStatus {
self.status = CrawlStatus::Start;
&self.status
}

/// Set the crawl status to persist between the run.
/// Example crawling a sitemap and all links after - website.crawl_sitemap().await.persist_links().crawl().await
pub fn persist_links(&mut self) -> &mut Self {
Expand Down
2 changes: 1 addition & 1 deletion spider_chrome/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_chrome"
version = "2.28.7"
version = "2.28.8"
rust-version = "1.70"
authors = [
"j-mendez <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion spider_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_cli"
version = "2.28.7"
version = "2.28.8"
authors = [
"j-mendez <[email protected]>"
]
Expand Down
2 changes: 1 addition & 1 deletion spider_transformations/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_transformations"
version = "2.28.7"
version = "2.28.8"
authors = [
"j-mendez <[email protected]>"
]
Expand Down
2 changes: 1 addition & 1 deletion spider_utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_utils"
version = "2.28.7"
version = "2.28.8"
authors = [
"j-mendez <[email protected]>"
]
Expand Down
2 changes: 1 addition & 1 deletion spider_worker/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_worker"
version = "2.28.7"
version = "2.28.8"
authors = [
"j-mendez <[email protected]>"
]
Expand Down

0 comments on commit 3b5cbd7

Please sign in to comment.