You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So you could replace the whole function with a simple crawler.exportData(config.outputFileName) call, and it will support both JSON and CSV automatically (based on the file extension).
The text was updated successfully, but these errors were encountered:
Hello from the crawlee team!
Just a small suggestion, I was taking a peek at the code and saw you do this to create a data bundle at the end.
gpt-crawler/src/core.ts
Lines 115 to 129 in 27b65d3
We recently added a new helper that does exactly the same:
https://crawlee.dev/api/basic-crawler/class/BasicCrawler#exportData
So you could replace the whole function with a simple
crawler.exportData(config.outputFileName)
call, and it will support both JSON and CSV automatically (based on the file extension).The text was updated successfully, but these errors were encountered: