I am trying to grab an email from a set of webpages but the issue is that the script that I am using does nothing. The email is located in a popup section that is under a script rather than class. I am not interested in extracting the entire script and then parsing out then email as I am just getting the email in one go. Is there a way to do this?
I have put my code and the html code for the page.
email <- html_text(html_nodes(doc, xpath = "//a[@class = 'email']"))
< script type="application/json" data-iso-key="_0" >
{"#name":"e-address","$":{"type":"email"},"_":"myname@university.edu"}]}
The issue is that the email only exists in the page in this form.