Leboncoin extractor
3 days trial then $19.00/month - No credit card required now
Leboncoin extractor
3 days trial then $19.00/month - No credit card required now
Extract information from leboncoin.fr : no limitation, you get fast results in CSV, Excel... or API format. Le meilleur outil de scrapping pour leboncoin
You can access the Leboncoin extractor programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1echo '{
2 "startUrls": [
3 {
4 "url": "https://www.leboncoin.fr/recherche?category=21&text=mer&price=17-50"
5 }
6 ],
7 "pageFunction": "async function pageFunction(context) {\\n let data = {}\\n let userData = context.request.userData\\n data.url = context.request.url\\n data.label = userData.label\\n\\n let items = await context.page.evaluate(() => {\\n const item = $('\''[data-qa-id=aditem_container]'\'')\\n const itemInfo = item.map(function(i,elem) {\\n let obj = {}\\n obj.title = $(this).find('\''[data-qa-id=aditem_title]'\'').text()\\n obj.price = $(this).find('\''[data-test-id=price]'\'').text()\\n obj.location = $(this).find('\''span[aria-label], p[aria-label]'\'').filter(function() { return this['\''aria-label'\'']?.match(/[0-9]{5}/);}).text()\\n obj.date = $(this).find('\''span[aria-label], p[aria-label]'\'').filter(function() { return this.title?.match(/:/);}).text()\\n obj.img = $(this).find('\''a img:first'\'').attr('\''src'\'')\\n obj.rank = i+1\\n return obj\\n }).get()\\n return itemInfo\\n })\\n let itemsWithDataProp = items.map(obj => { \\n for(const key of Object.keys(data) ){\\n obj[key] = data[key]\\n }\\n return obj\\n })\\n return itemsWithDataProp;\\n}\\n",
8 "proxyConfiguration": {
9 "useApifyProxy": true,
10 "apifyProxyGroups": [
11 "RESIDENTIAL"
12 ],
13 "apifyProxyCountry": "FR"
14 }
15}' |
16apify call anchor/leboncoin --silent --output-dataset
Leboncoin Extractor API through CLI
The Apify CLI is the official tool that allows you to use Leboncoin extractor locally, providing convenience functions and automatic retries on errors.
Install the Apify CLI
1npm i -g apify-cli
2apify login
Other API clients include:
Actor Metrics
11 monthly users
-
6 stars
>99% runs succeeded
Created in Oct 2021
Modified a month ago