Skip to content

Commit 1be81f0

Browse files
committed
refactor: code refactoring
1 parent 11aea9a commit 1be81f0

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

scrapegraph-js/examples/getCredits_example.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { getCredits } from "scrapegraph-sdk";
22
import 'dotenv/config';
33

44
try {
5-
const apiKey = process.env.SGAI_APIKEY;
5+
const apiKey = process.env.SGAI_APIKEY;
66

7-
const myCredit = await getCredits(apiKey);
7+
const myCredit = await getCredits(apiKey);
88

9-
console.log(myCredit)
9+
console.log(myCredit)
1010
} catch (error) {
11-
console.error(error)
11+
console.error(error)
1212
}

scrapegraph-js/examples/getSmartScraperRequest_example.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { getSmartScraperRequest } from "scrapegraph-sdk";
22
import 'dotenv/config';
33

44
try {
5-
const apiKey = process.env.SGAI_APIKEY;
6-
const requestId = "3fa85f64-5717-4562-b3fc-2c963f66afa6"
5+
const apiKey = process.env.SGAI_APIKEY;
6+
const requestId = '3fa85f64-5717-4562-b3fc-2c963f66afa6'
77

8-
const requestInfo = await getSmartScraperRequest(apiKey, requestId);
8+
const requestInfo = await getSmartScraperRequest(apiKey, requestId);
99

10-
console.log(requestInfo);
10+
console.log(requestInfo);
1111
} catch (error) {
12-
console.error(error);
12+
console.error(error);
1313
}

0 commit comments

Comments
 (0)