mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-14 23:55:54 +08:00
Update map.ts
This commit is contained in:
parent
ba5279eafc
commit
af9a0a6f0b
@ -55,12 +55,10 @@ export async function mapController(
|
|||||||
let mapUrl = req.body.search
|
let mapUrl = req.body.search
|
||||||
? `"${req.body.search}" site:${req.body.url}`
|
? `"${req.body.search}" site:${req.body.url}`
|
||||||
: `site:${req.body.url}`;
|
: `site:${req.body.url}`;
|
||||||
console.log(mapUrl);
|
|
||||||
// www. seems to exclude subdomains in some cases
|
// www. seems to exclude subdomains in some cases
|
||||||
const mapResults = await fireEngineMap(mapUrl, {
|
const mapResults = await fireEngineMap(mapUrl, {
|
||||||
numResults: 50,
|
numResults: 50,
|
||||||
});
|
});
|
||||||
console.log(mapResults);
|
|
||||||
|
|
||||||
if (mapResults.length > 0) {
|
if (mapResults.length > 0) {
|
||||||
mapResults.map((x) => {
|
mapResults.map((x) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user