Scrape data from a JSVariable

Describe the problem. Hi Guys,

I am looking for some help step by step instructions if possible - I need to scrape the GTIN/barcode from a website this is not displayed on page but in the code as a JSVariable. I would really appreciate your help. Can you tell me how I can do that or do you have a document you can share with me?

Thanks a million

Wendy

Url: https://www.revolutionbeauty.com

Sitemap:
{id:"sitemap code"}
{"_id":"tbbrevolutionmakeup","startUrl":["https://www.revolutionbeauty.com/en/Full-Product-Range/c-61.aspx"],"selectors":[{"id":"product","type":"SelectorLink","parentSelectors":["_root"],"selector":"div.second-color a.first-color","multiple":false,"delay":0},{"id":"name","type":"SelectorText","parentSelectors":["product"],"selector":"h1","multiple":false,"regex":"","delay":0},{"id":"price","type":"SelectorText","parentSelectors":["product"],"selector":"div.stock-dropdown-price-container span.fifth-color","multiple":false,"regex":"","delay":0},{"id":"image","type":"SelectorImage","parentSelectors":["product"],"selector":"a.zoom img","multiple":false,"delay":0},{"id":"description","type":"SelectorText","parentSelectors":["product"],"selector":"div.sixth-background.model-description span.fifth-color","multiple":false,"regex":"","delay":0},{"id":"ingredients","type":"SelectorText","parentSelectors":["product"],"selector":"p.ingredients-tab-content","multiple":false,"regex":"","delay":0},{"id":"company code","type":"SelectorText","parentSelectors":["product"],"selector":"span.item-part-code","multiple":false,"regex":"","delay":0}]}

The only way you can get the code is by extracting it as HTML and using the selector 'script[type="application/ld+json"]'. The only thing is you will have to do some post-processing to get our hands on the code.