mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
Changed port and added "using with firecrawl" section on readme
This commit is contained in:
parent
d833a132a5
commit
7dffaaa3e2
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -14,4 +14,7 @@ apps/test-suite/node_modules/
|
|||
|
||||
apps/test-suite/.env
|
||||
apps/test-suite/logs
|
||||
apps/test-suite/load-test-results/test-run-report.json
|
||||
apps/test-suite/load-test-results/test-run-report.json
|
||||
|
||||
apps/playwright-service-ts/node_modules/
|
||||
apps/playwright-service-ts/package-lock.json
|
|
@ -13,6 +13,7 @@ This is a simple web scraping service built with Express and Playwright.
|
|||
## Install
|
||||
```bash
|
||||
npm install
|
||||
npx playwright install
|
||||
```
|
||||
|
||||
## RUN
|
||||
|
@ -39,4 +40,8 @@ curl -X POST http://localhost:3000/scrape \
|
|||
},
|
||||
"check_selector": "#content"
|
||||
}'
|
||||
```
|
||||
```
|
||||
|
||||
## USING WITH FIRECRAWL
|
||||
|
||||
Add `PLAYWRIGHT_MICROSERVICE_URL=http://localhost:3003/scrape` to `/apps/api/.env` to configure the API to use this Playwright microservice for scraping operations.
|
||||
|
|
|
@ -8,7 +8,7 @@ import { getError } from './helpers/get_error';
|
|||
dotenv.config();
|
||||
|
||||
const app = express();
|
||||
const port = process.env.PORT || 3000;
|
||||
const port = process.env.PORT || 3003;
|
||||
|
||||
app.use(bodyParser.json());
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user