@spider-cloud/spider-client 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/spiderwebai.d.ts +1 -1
- package/dist/spiderwebai.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,13 +25,13 @@ Before using the SDK, you will need to provide it with your API key. Obtain an A
|
|
|
25
25
|
Here's a basic example to demonstrate how to use the SDK:
|
|
26
26
|
|
|
27
27
|
```javascript
|
|
28
|
-
import Spider from "spider-client";
|
|
28
|
+
import { Spider } from "@spider-cloud/spider-client";
|
|
29
29
|
|
|
30
30
|
// Initialize the SDK with your API key
|
|
31
|
-
const app = new Spider("
|
|
31
|
+
const app = new Spider({ apiKey: "YOUR_API_KEY" });
|
|
32
32
|
|
|
33
33
|
// Scrape a URL
|
|
34
|
-
const url = "https://
|
|
34
|
+
const url = "https://spider.cloud";
|
|
35
35
|
app
|
|
36
36
|
.scrapeUrl(url)
|
|
37
37
|
.then((data) => {
|
package/dist/spiderwebai.d.ts
CHANGED
package/dist/spiderwebai.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Spider = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* A class to interact with the Spider API.
|
|
5
6
|
*/
|
|
@@ -148,4 +149,4 @@ class Spider {
|
|
|
148
149
|
throw new Error(`Failed to ${action}. Status code: ${response.status}.`);
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
|
-
exports.
|
|
152
|
+
exports.Spider = Spider;
|