Selecting elements in a :shadow-root site

I can't select elements on this shadow-root site. Please help a newbie :')

Url: News search

Hi,

Please describe in more detail what exactly you are looking to scrape.

Hi Janis,

My problem is I can't select elements on the News page: News search

My theory is because the site is built by shadow-root :')

Yes, the shadow root is preventing the use of point-and-click, but you can locate the correct selectors by inspecting the HTML.

Here is a reference sitemap:

{"_id":"iadb","startUrl":["https://www.iadb.org/en/home/news/news-search"],"selectors":[{"id":"element","multiple":true,"parentSelectors":["_root"],"selector":"idb-news-card","type":"SelectorElement"},{"id":"title","multiple":false,"parentSelectors":["element"],"regex":"","selector":".title","type":"SelectorText"},{"id":"summary","multiple":false,"parentSelectors":["element"],"regex":"","selector":"[slot=\"summary\"]","type":"SelectorText"},{"id":"link","linkType":"linkFromAttributes","multiple":false,"parentSelectors":["element"],"selector":"_parent_","type":"SelectorLink"}]}
1 Like

Forever grateful! Thank you so much!