How to Extract Inner HTML of element?

  1. My search link https://yandex.com/images/search?text=cat%20stock&isize=large
  2. After clicked on first image https://yandex.com/images/search?pos=0&img_url=https%3A%2F%2Fimages.freeimages.com%2Fimages%2Flarge-previews%2Fc37%2Fcalico-cat-1561584.jpg&isize=large&text=cat%20stock&rpt=simage
  3. Now i need it select " Related Images <div class="tiled-images__container">" and copy inner html into csv
  4. Click on right arrow

<div class="preview2__arrow-icon preview2__arrow-icon_type_right"></div>

  1. repeat

Thank

If I look at the list web scraping commands, the best solution seems to use sourceExtract. You can use a regular expression to get the HTML source code that you need.

  • sourceExtract | (regex here) | result
  • store | ${result} | !csvLine
  • csvSave | yourdata.csv
1 Like

ty but it’s a little bit confused me because i’m just new :slight_smile: