This file contains hidden or 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
| #!/usr/bin/env node | |
| import { fileURLToPath } from 'url'; | |
| import { dirname, join } from 'path'; | |
| import { spawn } from 'child_process'; | |
| const __filename = fileURLToPath(import.meta.url); | |
| const __dirname = dirname(__filename); | |
| const scriptPath = join(__dirname, '..', 'scripts', 'scrape-or-search.mjs'); |
This file contains hidden or 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
| { | |
| "name": "@uratmangun/scraper-tool", | |
| "version": "1.0.0", | |
| "description": "A CLI tool for web scraping and Google search", | |
| "type": "module", | |
| "bin": { | |
| "@uratmangun/scraper-tool": "./bin/cli.js" | |
| }, | |
| "files": [ | |
| "bin", |
This file contains hidden or 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
| if you don't know the answer, try to search it on the internet. You can do so by running the following command: | |
| ``` | |
| npx @uratmangun/scraper-tool search "<query>" | |
| ``` | |
| Let's say the query is "how to install frog.fm". | |
| ``` | |
| npx @uratmangun/scraper-tool search "how to install frog.fm" |
OlderNewer