Skip to content

Commit

Permalink
chore(params): add sitemap_only
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Jan 21, 2025
1 parent 296f640 commit 728a7ee
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 35 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ docs/api/
# Miscellaneous
*.log
.DS_Store
Thumbs.db
Thumbs.db
deploy.sh
2 changes: 1 addition & 1 deletion book/book.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[book]
authors = ["Jeff Mendez <jeff@a11ywatch.com>"]
authors = ["Jeff Mendez <jeff@spider.cloud>"]
language = "en"
multilingual = false
src = "src"
Expand Down
6 changes: 3 additions & 3 deletions cli/Cargo.lock

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

4 changes: 2 additions & 2 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "spider-cloud-cli"
version = "0.1.25"
version = "0.1.26"
edition = "2021"
authors = [ "j-mendez <jeff@a11ywatch.com>"]
authors = [ "j-mendez <jeff@spider.cloud>"]
description = "The Spider Cloud CLI for web crawling and scraping"
license = "MIT"
readme = "README.md"
Expand Down
20 changes: 10 additions & 10 deletions javascript/package-lock.json

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

8 changes: 4 additions & 4 deletions javascript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spider-cloud/spider-client",
"version": "0.1.25",
"version": "0.1.26",
"description": "Isomorphic Javascript SDK for Spider Cloud services",
"scripts": {
"test": "node --import tsx --test __tests__/*test.ts",
Expand All @@ -20,13 +20,13 @@
"api",
"llm scraping"
],
"author": "Jeff Mendez<jeff@a11ywatch.com>",
"author": "Jeff Mendez<jeff@spider.cloud>",
"license": "MIT",
"devDependencies": {
"@types/node": "22.10.1",
"@types/node": "22.10.7",
"dotenv": "^16.4.7",
"tsx": "^4.19.2",
"typescript": "5.7.2"
"typescript": "5.7.3"
},
"dependencies": {
"exponential-backoff": "^3.1.1"
Expand Down
4 changes: 2 additions & 2 deletions javascript/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,9 @@ export interface SpiderParams {
sitemap?: boolean;

/**
* Get page insights to determine information like request duration, accessibility, and other web vitals. Requires the `metadata` parameter to be set to `true`.
* Specifies whether to only use the sitemap links.
*/
page_insights?: boolean;
sitemap_only?: boolean;

/**
* External domains to include the crawl.
Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def read_file(fname):

setup(
name="spider-client",
version="0.1.25",
version="0.1.26",
url="https://github.com/spider-rs/spider-clients/tree/main/python",
author="Spider",
author_email="[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion python/spider/async_spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def _prepare_headers(
return {
"Content-Type": content_type,
"Authorization": f"Bearer {self.api_key}",
"User-Agent": "AsyncSpider-Client/0.1.25",
"User-Agent": "AsyncSpider-Client/0.1.26",
}

async def _handle_error(self, response: ClientResponse, action: str) -> None:
Expand Down
2 changes: 1 addition & 1 deletion python/spider/spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def _prepare_headers(self, content_type: str = "application/json"):
return {
"Content-Type": content_type,
"Authorization": f"Bearer {self.api_key}",
"User-Agent": f"Spider-Client/0.1.25",
"User-Agent": f"Spider-Client/0.1.26",
}

def _post_request(self, url: str, data, headers, stream=False):
Expand Down
4 changes: 2 additions & 2 deletions python/spider/spider_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ class RequestParamsDict(TypedDict, total=False):
# Specifies whether to use the sitemap links.
sitemap: Optional[bool]

# Get page insights to determine information like request duration, accessibility, and other web vitals. Requires the `metadata` parameter to be set to `true`.
page_insights: Optional[bool]
# Specifies whether to only use the sitemap links.
sitemap_only: Optional[bool]

# External domains to include in the crawl.
external_domains: Optional[List[str]]
Expand Down
4 changes: 2 additions & 2 deletions rust/Cargo.lock

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

4 changes: 2 additions & 2 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "spider-client"
version = "0.1.25"
version = "0.1.26"
edition = "2021"
authors = [ "j-mendez <jeff@a11ywatch.com>"]
authors = [ "j-mendez <jeff@spider.cloud>"]
description = "Spider Cloud client"
license = "MIT"
readme = "README.md"
Expand Down
3 changes: 0 additions & 3 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,6 @@ pub struct RequestParams {
/// Specifies whether to use the sitemap links.
pub sitemap: Option<bool>,
#[serde(default)]
/// Get page insights to determine information like request duration, accessibility, and other web vitals. Requires the `metadata` parameter to be set to `true`.
pub page_insights: Option<bool>,
#[serde(default)]
/// External domains to include the crawl.
pub external_domains: Option<Vec<String>>,
#[serde(default)]
Expand Down

0 comments on commit 728a7ee

Please sign in to comment.