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
33*/
44import { ScrapflyClient , ScrapeConfig } from 'scrapfly-sdk' ;
55
6- const key = 'YOUR_SCRAPFLY_KEY ' ;
6+ const key = 'YOUR SCRAPFLY KEY ' ;
77const client = new ScrapflyClient ( { key } ) ;
88const result = await client . scrape (
99 new ScrapeConfig ( {
Original file line number Diff line number Diff line change 1010*/
1111import { ScrapflyClient , ScrapeConfig } from 'scrapfly-sdk' ;
1212
13- const key = 'YOUR_SCRAPFLY_KEY ' ;
13+ const key = 'YOUR SCRAPFLY KEY ' ;
1414const client = new ScrapflyClient ( { key } ) ;
1515const configs = [
1616 // these two will succeed:
Original file line number Diff line number Diff line change 11import { ScrapflyClient , ScrapeConfig } from '../build/src/main.js' ;
22import { BadApiKeyError } from '../build/src/errors.js' ;
33
4- const key = 'YOUR_SCRAPFLY_KEY ' ;
4+ const key = 'YOUR SCRAPFLY KEY ' ;
55const client = new ScrapflyClient ( { key } ) ;
66const acc = await client . account ( ) ;
77console . 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
33*/
44import { ScrapflyClient , ScrapeConfig } from '../build/src/main.js' ;
55
6- const key = 'YOUR_SCRAPFLY_KEY ' ;
6+ const key = 'YOUR SCRAPFLY KEY ' ;
77const client = new ScrapflyClient ( { key } ) ;
88const result = await client . scrape (
99 new ScrapeConfig ( {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ https://scrapfly.io/docs/scrape-api/javascript-scenario
55*/
66import { ScrapflyClient , ScrapeConfig } from 'scrapfly-sdk' ;
77
8- const key = 'YOUR_SCRAPFLY_KEY ' ;
8+ const key = 'YOUR SCRAPFLY KEY ' ;
99const client = new ScrapflyClient ( { key } ) ;
1010const result = await client . scrape (
1111 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
33*/
44import { ScrapflyClient , ScrapeConfig } from '../build/src/main.js' ;
55
6- const key = 'YOUR_SCRAPFLY_KEY ' ;
6+ const key = 'YOUR SCRAPFLY KEY ' ;
77const client = new ScrapflyClient ( { key } ) ;
88const result = await client . scrape (
99 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
33*/
44import { ScrapflyClient , ScrapeConfig } from '../build/src/main.js' ;
55
6- const key = 'YOUR_SCRAPFLY_KEY ' ;
6+ const key = 'YOUR SCRAPFLY KEY ' ;
77const client = new ScrapflyClient ( { key } ) ;
88const result = await client . scrape (
99 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
44*/
55import { ScrapflyClient , ScrapeConfig } from 'scrapfly-sdk' ;
66
7- const key = 'YOUR_SCRAPFLY_KEY ' ;
7+ const key = 'YOUR SCRAPFLY KEY ' ;
88const client = new ScrapflyClient ( { key } ) ;
99const result = await client . scrape (
1010 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
33*/
44import { ScrapflyClient , ScrapeConfig } from 'scrapfly-sdk' ;
55
6- const key = 'YOUR_SCRAPFLY_KEY ' ;
6+ const key = 'YOUR SCRAPFLY KEY ' ;
77const client = new ScrapflyClient ( { key } ) ;
88const result = await client . scrape (
99 new ScrapeConfig ( {
You can’t perform that action at this time.
0 commit comments