We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can the exporter receive fields from the evaluatePage serialized data?
The text was updated successfully, but these errors were encountered:
@maticrivo Here you go!
const HCCrawler = require('headless-chrome-crawler'); const CSVExporter = require('headless-chrome-crawler/exporter/csv'); const FILE = './tmp/result.csv'; const exporter = new CSVExporter({ file: FILE, fields: ['response.url', 'result.title'], }); HCCrawler.launch({ evaluatePage: (() => { return { title: window.document.title } }), maxDepth: 2, exporter, }) .then(crawler => { crawler.queue('https://example.com/'); crawler.onIdle() .then(() => crawler.close()); });
result.xxx is what you are looking for.
result.xxx
Sorry, something went wrong.
Thanks, for some reason it didn't work for me before, probably something wrong i was doing in the evaluatePage callback.. works now.
evaluatePage
No branches or pull requests
Can the exporter receive fields from the evaluatePage serialized data?
The text was updated successfully, but these errors were encountered: