Leboncoin Scraper avatar
Leboncoin Scraper
Deprecated
View all Actors
This Actor is deprecated

This Actor is unavailable because the developer has decided to deprecate it. Would you like to try a similar Actor instead?

See alternative Actors
Leboncoin Scraper

Leboncoin Scraper

mcdowell/leboncoin-scraper

Extremely fast Scraper that Extracts ads from leboncoin.fr

User avatar

Geolocation when running with start_urls

Closed

BasileDataimo opened this issue
2 years ago

Hello,

I'm assuming you prefer English than French ? Thanks for your work, this app is working nicely !

I have a question regarding the "startUrls" parameter I'm using to provide the search filters I want. I use this URL : https://www.leboncoin.fr/recherche?category=9&locations=r_12&owner_type=private&real_estate_type=1%2C2 The location r_12 corresponds to "Ile de France", but I get results from all France. Is there a better way to limit the search results to a single location ? The other parameters (category, owner_type, real_estate_type) seems to work as expected.

Also, I'd like to fetch some specific ads to see if they have been updated. Do you recommend using a list of startUrls with all ads URL or is there a better way ?

Best regards,

User avatar

Hello Basile, Thank you for your feedback. It appears that there was a bug that did not detect the region id properly. I have issued a fix to that deals with the bug. On the issue of specific ads, You can add them as an array of startUrls .e.g

1[
2    {
3        "url": "https://www.leboncoin.fr/ventes_immobilieres/2225007492.htm"
4    },
5    {
6        "url": "https://www.leboncoin.fr/ventes_immobilieres/2204360697.htm"
7    },
8    {
9        "url": "https://www.leboncoin.fr/ventes_immobilieres/2224981829.htm"
10    },
11    {
12        "url": "https://www.leboncoin.fr/ventes_immobilieres/2224970228.htm"
13    },
14    {
15        "url": "https://www.leboncoin.fr/ventes_immobilieres/2223814998.htm"
16    },
17    {
18        "url": "https://www.leboncoin.fr/ventes_immobilieres/2224522779.htm"
19    },
20    {
21        "url": "https://www.leboncoin.fr/ventes_immobilieres/2224838163.htm"
22    }
23]

Feel free to get in touch in case you have any other question

Developer
Maintained by Community