🌀Abdelkarim Ben Mohamadi
Email Marketing
0

Email Extractor: Pull Addresses Out of Any Text, With the Rules Lead Miner Learned the Hard Way

Abdelkarim Ben Mohamadi Abdelkarim Ben Mohamadi
Email extractor for text: a free tool that runs in your browser

Lead Miner has a small file called email_extractor.py. Its job sounds simple: find the email addresses on a web page.

It is not simple. The file holds a long list of addresses it must not keep, and next to many of them is a comment with a date: the day I found that address in results that should have been clean.

Today I took that list out of the program and turned it into a tool that runs right here on this page.

1. A list written with mistakes

The regular expression (regex) that finds addresses fits on one line. The whole problem is what it finds along with them.

  • September 21: In a test run, votre@gmail.com showed up among the "target customers". It wasn't anyone's address. It was the placeholder text inside the email field of a contact form.
  • September 25: In a search for tourist riads in Marrakech, exemple@gmail.com appeared. The same day, in another search, ex.nom@mail.com appeared from a hint that said "e.g.: name@...".
  • October 8: In a full usage test I got jean.dupont@gmail.com, the French "John Doe", plus you@company.ma, and googlers@google.com, which Google uses as an example on one of its pages.

Every time the result was the same: I open the file, add the word, and write a test so it can't come back. And I wonder how many addresses like these reached someone who sent a message and then waited for a reply that was never going to come.

Something worse than a fake address is an address that looks real. logo@2x.png is an image name, but many extractors let it through as a valid address. And jquery@3.6.0 is a library version number in the page code.

2. Addresses their owners hide

Then there's the other side: real addresses a simple extractor can't see, because site owners hide them from programs on purpose.

  • info [at] riad [dot] ma: an address written in words instead of symbols.
  • Cloudflare: replaces the address in the page code with a string of encrypted numbers, and it only shows up in the browser.
  • mailto:info%40riad.ma: a mail link with no @ sign in it at all.
  • @: the @ sign written as an HTML code, the way some WordPress plugins do it.

Lead Miner reads all of these forms, and the free tool reads them with the same rules.

3. The tool: try it now

Paste any text that has email addresses in it: a contact page you copied, the full source of a page (press Ctrl+U in the browser and copy everything), a column from a spreadsheet, or a long message. Then click "Extract addresses".

You'll get:

  • A clean list: each address once, in lowercase, with no stray period or comma at the end.
  • The reason for every removal: click the "Removed ... addresses" line to see each address that was dropped and why. If you see one you want, untick the option and extract again.
  • Copy, or a CSV file: the file opens in Excel and Google Sheets with two columns: the address and the domain.

The text you paste never leaves your device. The whole tool is code running in your browser, and it sends nothing to any server.

4. What the tool doesn't do, honestly

  • It doesn't visit websites: the browser stops one page from reading another site, so the tool only reads what you paste.
  • It doesn't check that the mailbox exists: an address can be written correctly and still be closed.
  • The example list isn't complete: it's what I've found so far, mostly in French and English, because most of my searching was in Morocco and France.

💳 Price and purchase

The tool cleans what you paste. Lead Miner does the tiring part before that: it searches for sites in your field and country, visits their contact and legal pages, extracts the addresses with the same rules, removes duplicates, and hands you a CSV file that opens in Excel. It runs on your Windows computer, with no paid search service.

Lead Miner: $99 / a full year license

Get your copy now 🚀

Question before buying? Message me on WhatsApp.

Every rule in a good program was once a mistake somebody saw.

What's the strangest address you've found in a list you bought or extracted? Write it in the comments, and it may become the next rule in the tool.

Also try Lead Miner Free. A new free tool reaches subscribers of the newsletter first every month.


Get it free now

Every week I send you my latest tech tutorials and free tools, straight to your inbox.

Free, and you can unsubscribe anytime.





Comments

Comments

Discover the latest tech solutions and PRO tools to grow your traffic, customers and sales For questions or to order any service or product, contact me directly on WhatsApp