How to scrape the e-mail address hided in the code

Hi,

I would like to scrape the e-mail address.
It's not showed on the page:

But it's in a href in the code:

So, I'm trying with an element attribute, but it's not working.

Here's the URL: https://www.maitre-boulanger-patissier.be/trouver-une-boulangerie-patisserie/boulangerie-vincent

And my sitemap:
{"_id":"a20201105maitreboulangerpatissierbe","startUrl":["https://www.maitre-boulanger-patissier.be/trouver-une-boulangerie-patisserie"],"selectors":[{"id":"Element","type":"SelectorLink","parentSelectors":["_root"],"selector":"a.shops-link","multiple":true,"delay":0},{"id":"Nom","type":"SelectorText","parentSelectors":["Element"],"selector":"h1","multiple":false,"regex":"","delay":0},{"id":"adresse","type":"SelectorText","parentSelectors":["Element"],"selector":"div.col-xs-12","multiple":false,"regex":"","delay":0},{"id":"tel","type":"SelectorText","parentSelectors":["Element"],"selector":"tr:contains('Téléphone') td.td-value","multiple":false,"regex":"","delay":0},{"id":"mobile","type":"SelectorText","parentSelectors":["Element"],"selector":"tr:contains('Mobile') td.td-value","multiple":false,"regex":"","delay":0},{"id":"email","type":"SelectorElementAttribute","parentSelectors":["_root"],"selector":"div.col-md-5","multiple":true,"extractAttribute":"href","delay":0}]}

What am I doing wrong?

Thanks for your help

Element attribute would not work here 'cos the info is actually commented out. Note the <!-- --> tags.

Fortunately you can just grab it with type: HTML and a regex:

Type: HTML
Selector: div.row > div.col-md-5
Regex: (?<=mailto:)[^"]+

Hi Ieemeng,

Thank you very much for your response.

In the data preview I see the email address :slight_smile:
But only "null" in the .csv :frowning:

Any idea why? Thanks :pray:t2: