CSS Selector Pulling In More Text

WP Intense Q & ACategory: Price Comparison ProCSS Selector Pulling In More Text
Kameron Scott asked 4 years ago

Hello,

I’m trying to scrape the price off of a page: https://www.crutchfield.com/p_136HD9005/JL-Audio-HD-Series-HD900-5.html and have found that the css selector: .buyBoxContainer .prodBuyBox .priceInfo .priceNow pulls in both the price, and the "Earn up to 1,100 Rewards points" text that’s after the price. I don’t see a more granular css selector for this. Can anyone help out with this?

Thanks!

Kameron S. replied 4 years ago

I was able to use the “.priceInfo *”, which seemed to work.

Kameron S. replied 4 years ago

I was able to use the “.priceInfo *”, which seemed to work.

Kameron S. replied 4 years ago

I was able to use the “.priceInfo *”, which seemed to work.

1 Answers
Kameron Scott answered 4 years ago

closing this out

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.