Scraping text inside of quotes, tried :contains, tried :has?

I'm again trying to scrape text which shows up inside quotes and I can't select it, can't seem to figure out how to capture it. I normally am able to do :contains, didn't work. Also tried :has but not sure I am even constructing it correctly (see sitemap).

Any thoughts on getting that text between the quotes?

Website page:
Concertex Aberdeen page

Sitemap:
{"_id":"concertexuphols","startUrl":["Collections Concertex® a","multiple":true,"delay":0},{"id":"collectionname","parentSelectors":["collections"],"type":"SelectorText","selector":"#detailbox h2.item_name","multiple":false,"delay":0,"regex":""},{"id":"name","parentSelectors":["collections"],"type":"SelectorText","selector":"div.colornamed","multiple":false,"delay":0,"regex":""},{"id":"image","parentSelectors":["collections"],"type":"SelectorImage","selector":"img.js--product-preview","multiple":false,"delay":0},{"id":"category","parentSelectors":["collections"],"type":"SelectorText","selector":"#detailbox > div.right > strong:contains('": Upholstery")","multiple":false,"delay":0,"regex":""},{"id":"content","parentSelectors":["collections"],"type":"SelectorText","selector":"div:has(strong:contains('Content'))","multiple":false,"delay":0,"regex":""}]}

Thanks for any guidance.

-Jenny

This type of "flat" structure is tricky to scrape. You can try grabbing the whole block then picking out info with regex. E.g. for "Abrasion":

Type: Text
Selector: #detailbox div.right
Regex: (?<=Abrasion :)[^:]+(?=Flammability)

But this only works if all these fields are always present, and they are always in the same order, i.e. Abrasion is always followed by Flammability.

1 Like

leemeng,
I was able to do that and edit my others and grab quite a bit of good data! Thanks!!

Question - in this example product, how would it be set up to get the Cleaning and Environmental ones? It didn't work for either of those. I thought it would for at least cleaning but no. Environmental I suspect is because it is the last one and doesn't have anything after it?

Example product

Regard,
-Jenny