gotcha-email
v1.0.9
Published
Gets email addresses based on urls.
Downloads
12
Maintainers
Readme
GotchaEmail
A simple and intuitive way to search for email addresses on websites.
Many thanks to the creator @ibrod83 and contributors of nodejs-web-scraper.
with the help of the following object tree search package object-scan made by @simlu.
To install run:
npm i gotcha-email
const gotchaEmail = new GotchaEmail(url);
Instantiates the GotchaEmail class with a url. Note: The url can be an empty string but when you try to retrieve email addresses from a website none will be found, because the program doesnt not know which website to search.
const emailAddresses = await gotchaEmail.getEmailsFromUrl();
will return an array of email addresses that were found on the root page or at any page that can be navigated to by using the link on the root page. Remember that it is asynchronous!
gotchaEmail.setUrl(url);
will allow you to change the url/website that the search will be performed on after instantiating the object with the first url.