Boulanger
This Actor is unavailable because the developer has decided to deprecate it. Would you like to try a similar Actor instead?
See alternative ActorsBoulanger
Extract information from boulanlger : simply provide your search URL (+ your filters and location). You will get the results easy, and fast
You can access the Boulanger 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.boulanger.com/resultats?tr=samsung"
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 = $('\''.product-item'\'')\\n // const item = $('\''.rm-product'\'')\\n const itemInfo = item.map(function(i,elem) {\\n let obj = {}\\n obj.title = $(this).find('\''h2'\'').text()\\n obj.sponsored = false\\n obj.price = $(this).find('\''.price__amount'\'').text()\\n obj.img = $(this).find('\''img'\'').attr('\''src'\'')\\n obj.rank = i+1\\n return obj\\n }).get()\\n\\n const itemSponsored = $('\''.rm-product'\'')\\n const itemInfoSponsored = itemSponsored.map(function(i,elem) {\\n let obj = {}\\n obj.title = $(this).find('\''h2'\'').text()\\n obj.sponsored = true\\n obj.price = $(this).find('\''.rm_price'\'').text()\\n obj.img = $(this).find('\''img'\'').attr('\''src'\'')\\n obj.rank = i+1\\n return obj\\n }).get()\\n\\n // return [...itemInfo,...itemInfoSponsored]\\n const allitems = itemInfoSponsored.concat(itemInfo)\\n return allitems\\n })\\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/boulanger --silent --output-dataset
Boulanger API through CLI
The Apify CLI is the official tool that allows you to use Boulanger locally, providing convenience functions and automatic retries on errors.
Install the Apify CLI
1npm i -g apify-cli
2apify login
Other API clients include: