File tree Expand file tree Collapse file tree 9 files changed +9
-9
lines changed Expand file tree Collapse file tree 9 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Most basic scrapfly request - GET a provided url
3
3
*/
4
4
import { ScrapflyClient , ScrapeConfig } from 'scrapfly-sdk' ;
5
5
6
- const key = 'YOUR_SCRAPFLY_KEY ' ;
6
+ const key = 'YOUR SCRAPFLY KEY ' ;
7
7
const client = new ScrapflyClient ( { key } ) ;
8
8
const result = await client . scrape (
9
9
new ScrapeConfig ( {
Original file line number Diff line number Diff line change 10
10
*/
11
11
import { ScrapflyClient , ScrapeConfig } from 'scrapfly-sdk' ;
12
12
13
- const key = 'YOUR_SCRAPFLY_KEY ' ;
13
+ const key = 'YOUR SCRAPFLY KEY ' ;
14
14
const client = new ScrapflyClient ( { key } ) ;
15
15
const configs = [
16
16
// these two will succeed:
Original file line number Diff line number Diff line change 1
1
import { ScrapflyClient , ScrapeConfig } from '../build/src/main.js' ;
2
2
import { BadApiKeyError } from '../build/src/errors.js' ;
3
3
4
- const key = 'YOUR_SCRAPFLY_KEY ' ;
4
+ const key = 'YOUR SCRAPFLY KEY ' ;
5
5
const client = new ScrapflyClient ( { key } ) ;
6
6
const acc = await client . account ( ) ;
7
7
console . log ( acc ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ This example shows how to set custom headers in scrapfly requests
3
3
*/
4
4
import { ScrapflyClient , ScrapeConfig } from '../build/src/main.js' ;
5
5
6
- const key = 'YOUR_SCRAPFLY_KEY ' ;
6
+ const key = 'YOUR SCRAPFLY KEY ' ;
7
7
const client = new ScrapflyClient ( { key } ) ;
8
8
const result = await client . scrape (
9
9
new ScrapeConfig ( {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ https://scrapfly.io/docs/scrape-api/javascript-scenario
5
5
*/
6
6
import { ScrapflyClient , ScrapeConfig } from 'scrapfly-sdk' ;
7
7
8
- const key = 'YOUR_SCRAPFLY_KEY ' ;
8
+ const key = 'YOUR SCRAPFLY KEY ' ;
9
9
const client = new ScrapflyClient ( { key } ) ;
10
10
const result = await client . scrape (
11
11
new ScrapeConfig ( {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ This example shows how to POST a form using scrapfly
3
3
*/
4
4
import { ScrapflyClient , ScrapeConfig } from '../build/src/main.js' ;
5
5
6
- const key = 'YOUR_SCRAPFLY_KEY ' ;
6
+ const key = 'YOUR SCRAPFLY KEY ' ;
7
7
const client = new ScrapflyClient ( { key } ) ;
8
8
const result = await client . scrape (
9
9
new ScrapeConfig ( {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ This example shows how to POST JSON using scrapfly
3
3
*/
4
4
import { ScrapflyClient , ScrapeConfig } from '../build/src/main.js' ;
5
5
6
- const key = 'YOUR_SCRAPFLY_KEY ' ;
6
+ const key = 'YOUR SCRAPFLY KEY ' ;
7
7
const client = new ScrapflyClient ( { key } ) ;
8
8
const result = await client . scrape (
9
9
new ScrapeConfig ( {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ in scrapfly and how to execute custom javascript code
4
4
*/
5
5
import { ScrapflyClient , ScrapeConfig } from 'scrapfly-sdk' ;
6
6
7
- const key = 'YOUR_SCRAPFLY_KEY ' ;
7
+ const key = 'YOUR SCRAPFLY KEY ' ;
8
8
const client = new ScrapflyClient ( { key } ) ;
9
9
const result = await client . scrape (
10
10
new ScrapeConfig ( {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ This example shows how to capture page screenshots in scrapfly
3
3
*/
4
4
import { ScrapflyClient , ScrapeConfig } from 'scrapfly-sdk' ;
5
5
6
- const key = 'YOUR_SCRAPFLY_KEY ' ;
6
+ const key = 'YOUR SCRAPFLY KEY ' ;
7
7
const client = new ScrapflyClient ( { key } ) ;
8
8
const result = await client . scrape (
9
9
new ScrapeConfig ( {
You can’t perform that action at this time.
0 commit comments