-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
refactor: Update Firecrawl to use v1 API #12574
refactor: Update Firecrawl to use v1 API #12574
Conversation
- Updated API endpoints from v0 to v1 for scrape and crawl methods. - Enhanced error handling in `scrape_url` and `check_crawl_status` methods. - Introduced helper methods _extract_common_fields and _format_crawl_status_response for better code organization and readability. Closes: langgenius#12571
From Firecrawl v1 perspective, looks good! |
Please fix the tests and run |
Hello @crazywoola, I’ve made the changes, but I couldn’t run the workflow or the pytest tests in the project directory locally. Could you run the workflow on this PR to check the results? |
UPDATE: I still need to make some changes. I’ll let you know once they’re done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth deleting the params that don't exist anymore so it doesn't confuse people. But overall looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT (from Firecrawl side) - @crazywoola mind taking another look at it and testing e2e to make sure it is good? Thank you!
Hello it seems it didn't pass the tests. |
Hello, I am going to take a look again 🤦 @crazywoola Can you run again the pipeline? |
390a9f3
to
a3b1e6c
Compare
Merged :) |
Summary
scrape_url
andcheck_crawl_status
methods._extract_common_fields
and_format_crawl_status_response
for better code organization and readability.Resolves #12571