[CONTRIBUTION] Scrape Emails from Multiple Websites

Here is a script I’ve coded that may be helpful for you guys.

This script looks for e-mails in the HTML of a given website.

If it doesn’t find anything, it clicks on the first <a> tag element with “contact” in its HREF and looks for an e-mail on this new page.

You can add multiple websites using a .CSV file.

Source code + tutorial: KantuScripts/Email Scraper at master · dpw1/KantuScripts · GitHub
Video: Scrape E-mails From Websites Automatically - YouTube

Let me know if you have any suggestions to improve it!

3 Likes

Nice job Diego!

Any idea how can make to the scraper skip the sites which is unavailable(offline or a link in invalid)?

Hi, @Unum!

Sorry for the late response - coincidentally enough I have stumbled across the same issue trying to use this script once again now in 2020. I’m still trying to figure out a fix, no luck so far!