Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requires maxDepth information in response after crawling #1113

Open
VK-T opened this issue Jan 30, 2025 · 0 comments
Open

Requires maxDepth information in response after crawling #1113

VK-T opened this issue Jan 30, 2025 · 0 comments

Comments

@VK-T
Copy link

VK-T commented Jan 30, 2025

import requests

url = "https://localhost:port/v1/crawl/{id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.request("GET", url, headers=headers)

print(response.text)

Above code snippet which was crawled with maxDepth 4 and returned the output as:

{
  "status": "<string>",
  "total": 123,
  "completed": 123,
  "creditsUsed": 123,
  "expiresAt": "2023-11-07T05:31:56Z",
  "next": "<string>",
  "data": [
    {
      "markdown": "<string>",
      "html": "<string>",
      "rawHtml": "<string>",
      "links": [
        "<string>"
      ],
      "screenshot": "<string>",
      "metadata": {
        "title": "<string>",
        "description": "<string>",
        "language": "<string>",
        "sourceURL": "<string>",
        "<any other metadata> ": "<string>",
        "statusCode": 123,
        "error": "<string>"
      }
    }
  ]
}

Where maxDepth is not available in the output. This parameter really favors us to do certain filters. FYI, I could find the maxDepth in locally hosted firecrawl for each urls of that website.. Tried to to get the data from localhost, but I can't. Also, there are no relevant documentation.

Could you please suggestion on "How to get the response from localhost? So that I can extract the maxDepth" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant