We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f70637 commit b689317Copy full SHA for b689317
sources/academy/webscraping/scraping_basics_javascript2/08_saving_data.md
@@ -168,6 +168,9 @@ import { AsyncParser } from '@json2csv/node';
168
Then, let's add one more data export near the end of the source code of our scraper:
169
170
```js
171
+const jsonData = JSON.stringify(data);
172
+await writeFile('products.json', jsonData);
173
+
174
const parser = new AsyncParser();
175
const csvData = await parser.parse(data).promise();
176
await writeFile("products.csv", csvData);
0 commit comments