Saksfifthavenue Scraper avatar

Saksfifthavenue 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
Saksfifthavenue Scraper

Saksfifthavenue Scraper

dtrungtin/saksfifthavenue-scraper

Extracts all the products from https://www.saksfifthavenue.com/

Saksfifthavenue Scraper

Saksfifthavenue Scraper is an Apify actor for extracting data about actors from Saksfifthavenue. It allows you to extract all products. It is build on top of Apify SDK and you can run it both on Apify platform and locally.

Input

FieldTypeDescriptionDefault value
startUrlsarrayList of Request objects that will be deeply crawled. The URL can be home page like https://www.saksfifthavenue.com/ or category page https://www.saksfifthavenue.com/Shoes/New-Arrivals/shop/_/N-52kjc7/Ne-6lvnb5 or detail page https://www.saksfifthavenue.com/christian-louboutin-levitibootie-leather-ankle-boots/product/0400011330427.[{ "url": "https://www.saksfifthavenue.com/" }]
maxItemsnumberMaximum number of actor pages that will be scrapedall found
extendOutputFunctionstringFunction that takes a Cheerio handle ($) as argument and returns data that will be merged with the result output. More information in Extend output function
proxyConfigurationobjectProxy settings of the run. This actor works better with the Apify proxy group SHADER. If you have access to Apify proxy, leave the default settings. If not, you can use other Apify proxy groups or you can set { "useApifyProxy": false" } to disable proxy usage{ "useApifyProxy": true, "apifyProxyGroups": ["SHADER"] }

Output

Output is stored in a dataset. Each item is an information about a product. Example:

1{
2  "url": "https://www.saksfifthavenue.com/christian-louboutin-loubileopard-metallic-eye-color/product/0400011810091",
3  "categories": [
4    "SaksBeautyPlace/ForHer/Color/Eyes/PowderShadow"
5  ],
6  "scrapedAt": "2019-11-30T11:12:10.245Z",
7  "title": "Christian Louboutin",
8  "description": "Loubiléopard Metallic Eye Color",
9  "designer": "christian louboutin",
10  "itemId": "0400011810091",
11  "color": "Priyado",
12  "price": 50,
13  "salePrice": 50,
14  "currency": "USD",
15  "source": "www.saksfifthavenue.com",
16  "brand": "christian louboutin",
17  "images": [
18    {
19      "src": "https://image.s5a.com/is/image/saks/0400011810091"
20    }
21  ],
22  "composition": null,
23  "sizes": [],
24  "availableSizes": []
25}

Compute units consumption

Keep in mind that it is much more efficient to run one longer scrape (at least one minute) than more shorter ones because of the startup time.

The average consumption is 0.4 Compute unit for 1000 actor pages scraped

Extend output function

You can use this function to update the result output of this actor. This function gets a Cheerio handle $ as an argument so you can choose what data from the page you want to scrape. The output from this will function will get merged with the result output.

The return value of this function has to be an object!

You can return fields to achive 3 different things:

  • Add a new field - Return object with a field that is not in the result output
  • Change a field - Return an existing field with a new value
  • Remove a field - Return an existing field with a value undefined
1($) => {
2    return {
3        "promoMessage": $('.product__promo-message').text().trim(),
4        "salePrice": 0,
5        url: undefined
6    }
7}

This example will add a new field promoMessage, change the salePrice field and remove url field

1{
2  "promoMessage": "$50-$750 GIFT CARD WITH CODE GIVE19SF",
3  "categories": [
4    "SaksBeautyPlace/ForHer/Color/Eyes/PowderShadow"
5  ],
6  "scrapedAt": "2019-11-30T11:12:10.245Z",
7  "title": "Christian Louboutin",
8  "description": "Loubiléopard Metallic Eye Color",
9  "designer": "christian louboutin",
10  "itemId": "0400011810091",
11  "color": "Priyado",
12  "price": 50,
13  "salePrice": 0,
14  "currency": "USD",
15  "source": "www.saksfifthavenue.com",
16  "brand": "christian louboutin",
17  "images": [
18    {
19      "src": "https://image.s5a.com/is/image/saks/0400011810091"
20    }
21  ],
22  "composition": null,
23  "sizes": [],
24  "availableSizes": []
25}

Epilogue

Thank you for trying my actor. I will be very glad for a feedback that you can send to my email dtrungtin@gmail.com. If you find any bug, please create an issue on the Github page.

Developer
Maintained by Community
Categories