I am trying to scrape emails from the following html line
<p><span>E-mail address:</span><a title="
 Link to email address

"href="mailto:joeschmoe123@goodtimes.com">joeschmoe123@goodtimes.com</a></p>
Now, I don't know why this span class is proving so difficult for me.
I am using R but am not really sure how to go about solving this issue.
email <- html_text(
html_nodes(doc, ?????)
Here is my current scraper that I am using
scrape <- function(x){
doc<-read_html(x)
author <- html_text(html_nodes(doc, '.art_authors'))
year <- html_text(html_nodes(doc, '.year'))
journalName <- html_text(html_nodes(doc, '.journalName'))
art_title <- html_text(html_nodes(doc, '.art_title'))
volume <- html_text(html_nodes(doc, '.volume'))
page <- html_text(html_nodes(doc, '.page'))
email <- html_text(html_nodes(doc, xpath = "//a[@class = 'email']"))
email2 <- html_text(html_nodes(doc, xpath = "//a[@class = 'ext-link']"))
Author = ifelse(length(author)==0, NA, author)
Year = ifelse(length(year)==0, NA, year)
Journal_Name = ifelse(length(journalName)==0, NA, journalName)
Art_Title = ifelse(length(art_title)==0, NA, art_title)
Volume = ifelse(length(volume)==0, NA, volume)
Page = ifelse(length(page)==0, NA, page)
Email = ifelse(length(email)==0, NA,
ifelse(length(email)==1, email, paste(email, collapse=" ; ")))
Email2 = ifelse(length(email2)==0, NA,
ifelse(length(email2)==1, email2, paste(email2, collapse=" ; ")))
row<-cbind(Author, Year, Journal_Name, Art_Title, Volume, Page, Email, Email2)
}