Hello ,
How can i scrape hide data for exemple i have a product when it's in stock the price exist ,if not available the price hide .
what can i do ?
Help plz
@amina Hi, are you able to share your sitemap or the targeted website?
If not - you should follow this video - Web Scraper << How to >> Extract data from element attribute
@amina You should be able to extract the 'hidden' price using the following text selector - script[type="application/ld+json"]:contains("price"), however, some additional data post-processing would be needed in order to 'clean' up the final result which is possible to be done using Web Scraper Cloud parser feature.
Sitemap example:
{"_id":"sobrico-com","startUrl":["https://www.sobrico.com/p/vachette-accessoires-cylindres-europeens-vachette_SKUM84233.html"],"selectors":[{"delay":0,"id":"price","multiple":false,"parentSelectors":["_root"],"regex":"","selector":"script[type=\"application/ld+json\"]:contains(\"price\")","type":"SelectorText"}]}
Helpful resources:
https://webscraper.io/documentation/web-scraper-cloud/parser
https://webscraper.io/documentation/web-scraper-cloud/parser/regex-match
Hope it helps!



