Im working in a puppeteer js scrapping project that is running in Windows terminal "node file.js". I get an array as my scrapping result, but now I need to use it in php. I need to make a file for php to read or to send the data directly to my php file.
Any ideas?
I have tried AJAX but I get this: ReferenceError: XMLHttpRequest is not defined
Also I have tried to create the file in my js project using:
new File([provincias], "xScrap.json", { type: "application/json" });
and getting this result: ReferenceError: File is not defined