Skip to content

Commit 5b7d81b

Browse files
feat: add Scraper API endpoint consts (#8)
1 parent 350d735 commit 5b7d81b

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ jobs:
4242

4343
- name: Release
4444
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
4646
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4747
run: npx semantic-release

src/scraper-api/constants.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export const SCRAPER_API_URL = "https://scraper-api.decodo.com";
2+
3+
export const SCRAPER_API_ENDPOINT_SYNC = `${SCRAPER_API_URL}/v2/scrape`;
4+
5+
export const SCRAPER_API_ENDPOINT_ASYNC = `${SCRAPER_API_URL}/v2/task`;
6+
7+
export const SCRAPER_API_ENDPOINT_BATCH = `${SCRAPER_API_URL}/v2/task/batch`;

src/scraper-api/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export * from "./api";
2+
export * from "./constants";
23
export * from "./parameters";
34
export * from "./targets";

0 commit comments

Comments
 (0)