Closed gchapelle closed 4 years ago
i have a issue to
api.leboncoin.fr/finder/search
when you send the api request he return this.
But this url work but only for specific ID not a search https://api.leboncoin.fr/finder/classified/"+id
if you find a way to do search again ;)
best
Correction: I have this message as well.
@xnico31 See #53 for details relevant to your issue. @gchapelle Can you check if its the same issue in your case, or something else, by looking at response value?
@Skymirrh Using your PR doesn't fix on my production setup, but works locally
@alexismoreau Welp, too bad. I suggest we stick to #53 for discussing potential fixes so as to keep it in one place.
I tried to change ip, serveur proxy same issue i don't think i'm ban
I look at the https://www.leboncoin.fr again and it seems they made some changes to the website to increase the security. I, unfortunately, don't have a lot of time to investigate on this :/
@xnico31 you should look at the header of your requests and how frequently you do it.
Maybe it is your server provider that has been blocked.
Same error here...
Get result : { "url": "https://c.datado.me/captcha/?initialCid=*****************==&hash=****************&t=fe" }
Header on chrome is :
api_key: ba0c2dad52b3ec Content-Type: application/json Referer: https://www.leboncoin.fr/recherche/?** Sec-Fetch-Mode: cors User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36
I think it's about a cookie of c.datado.me but not sure....
I see that you are missing several headers:
Thank you @tdurieux,
I tried on Postman with same error, I look at the #53 issue.
You cannot use *
value, you can look at the one used in this repo: https://github.com/tdurieux/leboncoin-api/commit/456d955747cec2f6005f7872e9bdaec7fc194339#diff-50e3aa130a4f97a42ee2cf111c7b1d9dR5
thanks @tdurieux ,
I red about the Cookie to add.
I tried that, with success ! THANKS !!
Hi everyone, it look likes Leboncoin adjusted their Datadome settings, the current headers does not work anymore on my end. Any luck on yours?
Yep, I don't know if my IP is the problem but none of the solutions I've found are working anymore.
I don't have issues with the library (at least by doing only few requests ) but I am currently in the US, this may impact the results.
You're right, the library is working fine. I made further tests and it's an IP address issue. I was using Luminati and the proxy got detected/banned by Datadome.
I am doing searches every 20 minutes apart from 00-06 hours and after getting results for few searches it then stops returning results. I get results again after few hours for few times and then stops again.
I would love to get them more often and I believe I'm missing something. Likely I don't know how to set cookie correctly or something else?
Could anyone give me a hint of what I'm missing and in case I need to put in some data from chrome, what data would that be?
Hi, Does the API still work for you? I did a small script from python using https://api.leboncoin.fr/finder/search/' which does not seem to work anymore ? Thanks
Best
Guillaume