Jump to content
UBot Underground

how do i scrape all emails from a page?


Recommended Posts

I think the easiest way is to scrape the HTML of the whole page, and then use REGEX to extract emails.

 

Here is an example:

set(#HTML, $scrape attribute(<tagname="html">, "outerhtml"), "Global")
clear list(%EMAILS)
add list to list(%EMAILS, $find regular expression(#HTML, "[a-z0-9!#$%&\'*+/=?^_`\{|\}~-]+(?:\\.[a-z0-9!#$%&\'*+/=?^_`\{|\}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+(?:[A-Z]\{2\}|com|org|net|edu|gov|mil|biz|info|mobi|name|aero|asia|jobs|museum)\\b"), "Delete", "Global")
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...