-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): add
crawler.exportData()
helper
Retrieves all the data from the default crawler `Dataset` and exports them to the specified format. Supported formats are currently 'json' and 'csv', and will be inferred from the `path` automatically. ```ts const crawler = new BasicCrawler({ ... }); crawler.pushData({ ... }); await crawler.exportData('./data.csv'); ```
- Loading branch information
Showing
4 changed files
with
108 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,8 @@ jobs: | |
|
||
- name: Tests | ||
run: yarn test | ||
env: | ||
YARN_IGNORE_NODE: 1 | ||
|
||
docs: | ||
name: Docs build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters