Pull the person's name and company from the page
Convert the company name into a domain via Clearbit's [free autocomplete api](clearbit.com/docs#autocompl…)
Create a list of possible emails via permutating combinations of first name + last name + domain
For each of the possible emails, check each one and see if any are valid (validity check outlined in next section)
When a valid email address is detected, insert it into the LinkedIn profile you are viewing along with its source
? HOW DOES IT CHECK THAT EMAIL IS VALID?
Gmail / google apps for businesses emails are validated with 100% accuracy via [this method](blog.0day.rocks/abusing-gmail-…
Сhecking #DNS records with a reverse DNS lookup to detect if any domains have been registered with an email
Checking #HaveIBeenPwned (!) to see if an email has been dumped in any hacks