-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from austin1237/deno
Deno
- Loading branch information
Showing
18 changed files
with
1,150 additions
and
6,381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
# Local | ||
This is where scraping scripts that can only be ran locally and not in a remote enviorment go. | ||
|
||
This is where scraping scripts that can only be ran locally and not in a remote | ||
enviorment go. | ||
|
||
## Deno | ||
|
||
These scripts are written to be used with the [Deno](https://deno.land/) runtime using the following command | ||
|
||
```bash | ||
deno task run | ||
``` | ||
|
||
## Set up (OSX) | ||
For these scripts to run sucessfully it requires an already running instance of chrome in debug mode, as well a tab logged into the target site to bypass auth/recaptcha. | ||
|
||
For these scripts to run sucessfully it requires an already running instance of | ||
chrome in debug mode, as well a tab logged into the target site to bypass | ||
auth/recaptcha. | ||
|
||
Run the following command with no other chrome process running to get Chrome running in debug mode: | ||
Run the following command with no other chrome process running to get Chrome | ||
started in debug mode: | ||
|
||
```bash | ||
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 | ||
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"tasks": { | ||
"dev": "deno run --watch main.ts", | ||
"run": "deno run --allow-net --allow-env --allow-read --allow-sys main.ts" | ||
}, | ||
"imports": { | ||
"@std/assert": "jsr:@std/assert@1", | ||
"axios": "npm:axios@^1.7.7", | ||
"axios-mock-adapter": "npm:axios-mock-adapter@^2.1.0", | ||
"puppeteer": "npm:puppeteer@^23.6.0" | ||
}, | ||
"nodeModulesDir": "auto" | ||
} |
Oops, something went wrong.