scrapfly-sdk 0.1.0 → 0.1.1
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 +12 -2
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -2,9 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
`npm install scrapfly-sdk`
|
|
4
4
|
|
|
5
|
+
Typescript/NodeJS SDK for [Scrapfly.io](https://scrapfly.io/) web scraping API which allows to:
|
|
6
|
+
- Scrape the web without being blocked.
|
|
7
|
+
- Use headless browsers to access Javascript-powered page data.
|
|
8
|
+
- Scale up web scraping.
|
|
9
|
+
- ... and [much more](https://scrapfly.io/docs/scrape-api/getting-started)!
|
|
10
|
+
|
|
11
|
+
For web scraping guides see [our blog](https://scrapfly.io/blog/) and [#scrapeguide](https://scrapfly.io/blog/tag/scrapeguide/) tag for how to scrape specific targets.
|
|
12
|
+
|
|
5
13
|
## Quick Intro
|
|
6
14
|
|
|
7
|
-
|
|
15
|
+
1. Register a [Scrapfly account for free](https://scrapfly.io/register)
|
|
16
|
+
2. Get your API Key on [scrapfly.io/dashboard](https://scrapfly.io/dashboard)
|
|
17
|
+
3. Start scraping: 🚀
|
|
8
18
|
|
|
9
19
|
```javascript
|
|
10
20
|
import { ScrapflyClient, ScrapeConfig } from 'scrapfly-sdk';
|
|
@@ -30,7 +40,7 @@ console.log(apiResponse.result.content); // html content
|
|
|
30
40
|
```
|
|
31
41
|
|
|
32
42
|
For more see [/examples](/examples/) directory.
|
|
33
|
-
For more on Scrapfly API see
|
|
43
|
+
For more on Scrapfly API see our [getting started documentation](https://scrapfly.io/docs/scrape-api/getting-started)
|
|
34
44
|
For Python see [Scrapfly Python SDK](https://github.com/scrapfly/python-scrapfly)
|
|
35
45
|
|
|
36
46
|
## Development
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scrapfly-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "SDK for Scrapfly.io web scraping service",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "build/src/main.d.ts",
|
|
@@ -53,7 +53,6 @@
|
|
|
53
53
|
"license": "BSD",
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"axios": "^1.4.0",
|
|
56
|
-
"node-fetch": "^3.3.1",
|
|
57
56
|
"tslib": "~2.5",
|
|
58
57
|
"tslog": "^4.8.2"
|
|
59
58
|
},
|