mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-01 06:32:01 +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/.env
|
||||||
apps/test-suite/logs
|
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
|
## Install
|
||||||
```bash
|
```bash
|
||||||
npm install
|
npm install
|
||||||
|
npx playwright install
|
||||||
```
|
```
|
||||||
|
|
||||||
## RUN
|
## RUN
|
||||||
@ -39,4 +40,8 @@ curl -X POST http://localhost:3000/scrape \
|
|||||||
},
|
},
|
||||||
"check_selector": "#content"
|
"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();
|
dotenv.config();
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
const port = process.env.PORT || 3000;
|
const port = process.env.PORT || 3003;
|
||||||
|
|
||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user