Closed andreaangeli closed 4 years ago
which version of the API do you use?
same here, using leboncoin-api@0.0.20
Leboncoin changed its website, this version does not work anymore. You have to use the latest one.
sorry, I got wrong I updated the module and it works. By the way is there any command to download the results of the research in a formatted json file or CSV ? For instance I tried with the command node research.js > output.json
and effectively it returns a file called output.json with the results but probably, the file is not properly formatted because I'm not able to open it as a json file.
@andreaangeli Use console.log(JSON.stringify(data.results)); console.log alone doesn't format the result in json.
I tried to run this script
That's strange because some days ago it worked well