Skip to content
Advertisement

unable to scrape status of product

I want to scrape price and status of website. I am able to scrape price but unable to scrape status. Couldn’t find in JSON as well.

enter image description here

here is link: https://www.zoro.com/jonard-tools-diagonal-cutting-plier-8-l-jic-2488/i/G2736212/?recommended=true

JavaScript

Advertisement

Answer

You can use Json microformat embedded inside the page to obtain availability (price, images, description…).

For example:

JavaScript

Prints:

JavaScript

EDIT: You can observe all product data that is embedded within the page:

JavaScript

When this key isExpeditable is set to False, it means Drop Shipping (I think). When I tested it with product that is in stock, it prints True.

The output:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement