Skip to content

Commit

Permalink
Docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
kami4ka committed May 6, 2022
1 parent 9f8e7f2 commit a25730d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
45 changes: 23 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ JavaScript applications. It runs both in Node.js and browser.
#### [](#ScrapingAntClient) `new ScrapingAntClient(options)`


| Param | Type | Default |
| --- | --- | --- |
| [options] | <code>object</code> | |
| [options.maxRetries] | <code>number</code> | <code>8</code> |
| Param | Type | Default |
|----------------------------------------|---------------------|------------------|
| [options] | <code>object</code> | |
| [options.maxRetries] | <code>number</code> | <code>8</code> |
| [options.minDelayBetweenRetriesMillis] | <code>number</code> | <code>500</code> |
| [options.timeoutSecs] | <code>number</code> | <code>60</code> |
| [options.apiKey] | <code>string</code> | |
| [options.timeoutSecs] | <code>number</code> | <code>60</code> |
| [options.apiKey] | <code>string</code> | |


* * *
Expand All @@ -74,17 +74,18 @@ JavaScript applications. It runs both in Node.js and browser.

https://docs.scrapingant.com/request-response-format#available-parameters

| Param | Type |
| --- | --- |
| url | <code>string</code> |
| [parameters] | <code>object</code> |
| [parameters.browser] | <code>boolean</code> |
| [parameters.cookies] | <code>string</code> |
| [parameters.js_snippet] | <code>string</code> |
| [parameters.proxy_type] | <code>string</code> |
| [parameters.proxy_country] | <code>string</code> |
| [parameters.wait_for_selector] | <code>string</code> |
| [parameters.return_text] | <code>boolean</code> |
| Param | Type |
|--------------------------------|----------------------|
| url | <code>string</code> |
| [parameters] | <code>object</code> |
| [parameters.browser] | <code>boolean</code> |
| [parameters.cookies] | <code>string</code> |
| [parameters.headers] | <code>object</code> |
| [parameters.js_snippet] | <code>string</code> |
| [parameters.proxy_type] | <code>string</code> |
| [parameters.proxy_country] | <code>string</code> |
| [parameters.wait_for_selector] | <code>string</code> |
| [parameters.return_text] | <code>boolean</code> |

**IMPORTANT NOTE:** <code>parameters.js_snippet</code> will be encoded to Base64 automatically by the ScrapingAnt JS client library.

Expand All @@ -101,11 +102,11 @@ because a correction by the user is needed.

**Properties**

| Name | Type | Description |
| --- | --- | --- |
| message | <code>string</code> | Error message returned by the API. |
| statusCode | <code>number</code> | HTTP status code of the error. |
| httpMethod | <code>string</code> | HTTP method of the API call. |
| Name | Type | Description |
|------------|---------------------|------------------------------------|
| message | <code>string</code> | Error message returned by the API. |
| statusCode | <code>number</code> | HTTP status code of the error. |
| httpMethod | <code>string</code> | HTTP method of the API call. |


* * *
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrapingant/scrapingant-client",
"version": "0.2.0",
"version": "0.2.1",
"description": "ScrapingAnt API client for JavaScript",
"main": "src/index.js",
"keywords": [
Expand Down

0 comments on commit a25730d

Please sign in to comment.