I’m looking for the right xpath expression to search all text() in html page that contains the string: @domain
on a match extract till the first space on the left and till the first space on the right –
just to fetch the email address.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This Xpath query will fetch text of all nodes containing ‘@domain’
You can then parse the text to extract the email using Python
UPDATE:
Looks like XPath selectors in scrapy have
remethod, which i wasn’t aware of: