Javascript that stop me to give email adress

Hi,

Here is a page where when you click on email button, a javascript leads your to your mailbox (mailto).

https://www.clubdesbrunosetdesccs.org/members/

I do not succed to put good selector to give the email, can you help me ? regards

here is my sitemap :

{"_id":"clubdesbrunosetdesccs","startUrl":["https://www.clubdesbrunosetdesccs.org/members/"],"selectors":[{"id":"element","multiple":true,"parentSelectors":["_root"],"selector":"div.userpro-awsm:nth-of-type(n+4)","type":"SelectorElement"},{"id":"nom","multiple":false,"parentSelectors":["element"],"regex":"","selector":".userpro-awsm-name a.userpro-transition","type":"SelectorText"},{"clickActionType":"real","clickElementSelector":"i","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":2000,"discardInitialElements":"do-not-discard","id":"clic-mail","multiple":false,"parentSelectors":["element"],"selector":"div.userpro-centered-icons","type":"SelectorElementClick"}]}

hi, if my question is not clear, please say it, i can change the explaination. I really need to scrap this website, thanks in advance

Hi,

You can right-click -> Inspect on the mail button and check in the HTML which attribute holds the e-mail parameter:

image

In this case it is 'data-enc-email'.

It can be scraped by creating a selector with the Element attribute type, see sitemap below:

{"_id":"clubdesbrunosetdesccs","startUrl":["https://www.clubdesbrunosetdesccs.org/members/"],"selectors":[{"id":"element","multiple":true,"parentSelectors":["_root"],"selector":"div.userpro-awsm:nth-of-type(n+4)","type":"SelectorElement"},{"id":"nom","multiple":false,"parentSelectors":["element"],"regex":"","selector":".userpro-awsm-name a.userpro-transition","type":"SelectorText"},{"extractAttribute":"data-enc-email","id":"e-mail","multiple":false,"parentSelectors":["element"],"selector":"div.userpro-centered-icons a","type":"SelectorElementAttribute"}]}

Use find and replace in Excel or a different application to replace [at] with @

Hope this helps.

Seems like emails there are not a valid emails at all......

1 Like

Oh yeah, I had not noticed that the addresses are not valid, please disregard my previous message.

thanks @JanAp and @don2010 - when you clic on email button, webmail opens (like gmail) with good email adress, how is it possible to give this good email adress ?

I doubt there is a way to extract email

arf !! thanks for your help, if anybody has an idea ...

a clue, when you clic on the email button, here is the url that is loaded : https://mail.google.com/mail/u/0/?fs=1&tf=cm&source=mailto&to=mannonoel@clubdesbrunosetdesccs.org

that url contains email, i think it must be possible to give that adress on the scrap, no ?

Please try this setup:

{"_id":"clubdesbrunosetdesccs","startUrl":["https://www.clubdesbrunosetdesccs.org/members/"],"selectors":[{"id":"element","multiple":true,"parentSelectors":["_root"],"selector":"div.userpro-awsm:nth-of-type(n+4)","type":"SelectorElement"},{"id":"nom","multiple":false,"parentSelectors":["element"],"regex":"","selector":".userpro-awsm-name a.userpro-transition","type":"SelectorText"},{"id":"e-mail","linkType":"linkFromRedirect","multiple":true,"parentSelectors":["element"],"selector":"div.userpro-centered-icons a","type":"SelectorLink"}]}
1 Like

wooooooooo !!!! yes it is working !!!! thanks so much !! @JanAp

1 Like