Skip to content
WP Intense Q & ACategory: Price Comparison ProWalmart Mexico selector
Pedro B. asked 1 year ago

Hi there, I maade a question and never got the answer. May you please help with Walmart Mexico selector?

Example: https://www.walmart.com.mx/bebes/cambio-de-panales/panales/panal-para-bebe-huggies-supreme-etapa-1-228-piezas_00750194341687

Thank you

1 Answers
Dave H. Staff answered 1 year ago

Hi – sorry I missed this. If you need help with further selectors, I’ve created a channel for price comparison pro on our discord server.

https://discord.gg/ms2SWqAf

Here’s the selectors for the page you listed above:

Retail price: div[data-automation-id="product-detail-offer-details"] > div:first-child > p, h4[data-automation-id="product-price"]

Sale price: h4[data-automation-id="product-price"]

Dave H. Staff replied 1 year ago

Also – please note that the Walmart site is using Ajax to populate the page – if you view source on the page, the prices do not exist. That means, to scrape the site you should use the Scraper API Rendered option.

Come chat to me on our Discord server to ask questions - Dave Hilditch, WP Intense

We use cookies

We use cookies for various things on our site, including our on-site chat bubble (if you use it), our comment forms (if you use them) and for session handling (if you log in).

Other than that, we use cookies to identify where traffic came from to help us understand which traffic turns into sales, we use a cookie for Google Analytics traffic analysis and we use a cookie to customise adverts for our own products we think you'll be interested in.

You can read more detail in our privacy policy page. Please click 'Accept' or 'Decline' to continue.