Skip to content

Commit

Permalink
chore(rust): fix search params
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Jul 7, 2024
1 parent 6439078 commit 8cbb313
Show file tree
Hide file tree
Showing 8 changed files with 370 additions and 103 deletions.
2 changes: 1 addition & 1 deletion javascript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spider-cloud/spider-client",
"version": "0.0.51",
"version": "0.0.52",
"description": "A Javascript SDK for Spider Cloud services",
"scripts": {
"test": "node --import tsx --test __tests__/*test.ts",
Expand Down
4 changes: 2 additions & 2 deletions javascript/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ export interface SpiderParams {
/**
* The blacklist routes to ignore. This can be a Regex string pattern.
*/
black_list?: string[];
blacklist?: string[];

/**
* The whitelist routes to only crawl. This can be a Regex string pattern and used with black_listing.
*/
white_list?: string[];
whitelist?: string[];

/**
* The locale to be used during 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.0.51",
version="0.0.52",
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/spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,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.0.51",
"User-Agent": f"Spider-Client/0.0.52",
}

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 @@ -36,10 +36,10 @@ class RequestParamsDict(TypedDict, total=False):
budget: Optional[Dict[str, int]]

# The blacklist routes to ignore. This can be a Regex string pattern.
black_list: Optional[List[str]]
blacklist: Optional[List[str]]

# The whitelist routes to only crawl. This can be a Regex string pattern and used with black_listing.
white_list: Optional[List[str]]
whitelist: Optional[List[str]]

# The locale to be used during the crawl.
locale: Optional[str]
Expand Down
Loading

0 comments on commit 8cbb313

Please sign in to comment.