Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4.4.0
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ async function get(url) {
device: 'desktop',
// Use some data extraction rules
extract_rules: { title: 'h1' },
// Use AI data extraction rules
ai_extract_rules: { summary: '5 words summary of the post' },
// Wrap response in JSON
json_response: false,
// JavaScript scenario to execute (clicking on button, scrolling ...)
Expand Down
3 changes: 0 additions & 3 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ export declare type SpbParams = {
custom_google?: boolean;
device?: string;
extract_rules?: object | string;
ai_extract_rules?: {
summary: string;
};
forward_headers?: boolean;
forward_headers_pure?: boolean;
js_scenario?: object | string;
Expand Down
1 change: 0 additions & 1 deletion dist/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ function process_params(params) {
break;
case 'extract_rules':
case 'js_scenario':
case 'ai_extract_rules':
clean_params[key] =
typeof params[key] === 'string' ? params[key] : process_json_stringify_param(params[key]);
break;
Expand Down
10 changes: 4 additions & 6 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scrapingbee",
"version": "1.7.6",
"version": "1.7.5",
"description": "ScrapingBee Node SDK",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export type SpbParams = {
custom_google?: boolean;
device?: string;
extract_rules?: object | string;
ai_extract_rules?: { summary: string };
forward_headers?: boolean;
forward_headers_pure?: boolean;
js_scenario?: object | string;
Expand Down
1 change: 0 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export function process_params(params: Record<string, any>) {
break;
case 'extract_rules':
case 'js_scenario':
case 'ai_extract_rules':
clean_params[key] =
typeof params[key] === 'string' ? params[key] : process_json_stringify_param(params[key]);
break;
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const LIB_VERSION = "1.7.6";
export const LIB_VERSION = "1.7.5";
Loading