Describe the problem.
If you're trying to scrape any of the individual company profile pages linked from the results of crm.consulting/search such as https://crm.consulting/company/datacom/ you will see several unordered list elements with a class of summary-li and within that comes the problem: I want to grab the value in the span tag following <h4 class="summary-label"><span>Partner Tier</span></h4> which is usually a value of gold, platinum or silver, as in the tag <span class=" summary-value" style="text-transform: uppercase;">gold</span>. I also need the Year of Founding value that appears in the next li tag on the page following its h4 tag similarly (e.g., scrape the year from the value in <span class=" summary-value">1965</span>). A few others in that section of code are similar, though the number in the summary-value span following <span>Certified Professionals</span> is most important. If you can provide the sitemap for these few fields using the above example URL for Datacom (ideally using relative references to the Partner Tier, Year of Founding and Certified Professionals labels for the selectors, since those are consistent but I can't guarantee these fields will be consistent on nth-of-type absolute positioning), then I'll be set on all the other fields/profile pages! Many thanks in advance.
Hi @gutmach
You should be able to get the desired data by using the jQuery selector - ':contains'.
As an example: to extract the 'partner-tier' you can use the following selector - li.summary-li:contains("Partner Tier") span.summary-value.
Sitemap example:
{"_id":"crm-consulting","startUrl":["https://crm.consulting/company/datacom/"],"selectors":[{"delay":0,"id":"partner-tier","multiple":false,"parentSelectors":["_root"],"regex":"","selector":"li.summary-li:contains(\"Partner Tier\") span.summary-value","type":"SelectorText"},{"delay":0,"id":"certified proffesionals","multiple":false,"parentSelectors":["_root"],"regex":"","selector":"li.summary-li:contains(\"Certified Professionals\") span.summary-value","type":"SelectorText"}]}