You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-5Lines changed: 24 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,17 +3,18 @@
3
3
`npm install scrapfly-sdk`
4
4
5
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)!
6
+
7
+
- Scrape the web without being blocked.
8
+
- Use headless browsers to access Javascript-powered page data.
9
+
- Scale up web scraping.
10
+
- ... and [much more](https://scrapfly.io/docs/scrape-api/getting-started)!
10
11
11
12
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
13
13
14
## Quick Intro
14
15
15
16
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
+
2. Get your API Key on [scrapfly.io/dashboard](https://scrapfly.io/dashboard)
17
18
3. Start scraping: 🚀
18
19
19
20
```javascript
@@ -43,6 +44,24 @@ For more see [/examples](/examples/) directory.
43
44
For more on Scrapfly API see our [getting started documentation](https://scrapfly.io/docs/scrape-api/getting-started)
44
45
For Python see [Scrapfly Python SDK](https://github.com/scrapfly/python-scrapfly)
45
46
47
+
## Debugging
48
+
49
+
To enable debug logs set Scrapfly's log level to `"DEBUG"`:
50
+
51
+
```javascript
52
+
log.setLevel('DEBUG');
53
+
```
54
+
55
+
Additionally, set `debug=true` in `ScrapeConfig` to access debug information in [Scrapfly web dashboard](https://scrapfly.io/dashboard):
0 commit comments