Issue with Find Elements Node

Hi, Am trying to extract only the news items in knime from the following page with the find elements node.

Could you please help which option and corresponding value in Find elements node should i pick in order to be able to pick only news articels from the website.

Regards
AJ

You’ll typically want to use an XPath or CSS selector expression to get the contents (in case you’re not familiar with that – there are tons of tutorials available online).

Simple example:

<body>
   <div id="results">
      <div class="result">abc</div>
      <div class="result">def</div>
   </div>
</body>

In that case, a good CSS selector would be #results .result, or alternatively (equivalent) XPath //div[@id='results']/div[@class='result']

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.