Trying to pull emails from a mailto

Trying to scrape email address that is a mailto link ie: it opens the user email program, I have used element attribute and then the attribute name href If I view data preview the email is displayed, when I check subsequent pages with data preview nothing is displayed and when I scrape no data is pulled. Is there a way to configure this please?
Thx in advance.

Sitemap:
{id:"{"_id":"Cornwall-page-link-test","startUrl":["https://www.ukparks.com/results.php?county=Cornwall"],"selectors":[{"id":"Pagination","paginationType":"auto","parentSelectors":["_root","Pagination"],"selector":"a.pagination__item","type":"SelectorPagination"},{"id":"Link-to-main-pages","linkType":"linkFromHref","multiple":true,"parentSelectors":["Pagination"],"selector":".parkcard__info__actions a:nth-of-type(1)","type":"SelectorLink"},{"id":"Address","multiple":false,"parentSelectors":["Link-to-main-pages"],"regex":"","selector":".col-1-3 p:nth-of-type(2)","type":"SelectorText"},{"id":"Tel","multiple":false,"parentSelectors":["Link-to-main-pages"],"regex":"","selector":".col-1-3 p span.phone-event","type":"SelectorText"},{"id":"Campsite-URL","multiple":false,"parentSelectors":["Link-to-main-pages"],"regex":"","selector":".no-gutter a","type":"SelectorText"},{"extractAttribute":"href","id":"email","multiple":false,"parentSelectors":["Link-to-main-pages"],"selector":".col-1-3 .emailhide a","type":"SelectorElementAttribute"}]}"}

Try these selector for email , First Element click then element attribute

{"_id":"Email","startUrl":["https://www.ukparks.com/park/penmarlam/"],"selectors":[{"clickActionType":"real","clickElementSelector":".col-1-1 .emailhide a","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":0,"discardInitialElements":"discard-when-click-element-exists","id":"Email","multiple":true,"parentSelectors":["_root"],"selector":"body","type":"SelectorElementClick"},{"extractAttribute":"href","id":"fff","multiple":false,"parentSelectors":["Email"],"selector":"a[href^=\"mailto:\"]","type":"SelectorElementAttribute"}]}

Thank you that works just fine.

1 Like