Find email on webpage

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information:CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
techimac
Posts: 287
Joined: Fri Feb 20, 2015 9:27 pm

Find email on webpage

Post by techimac » Mon Aug 22, 2016 2:16 pm

I need to find email on a webpage.
I am using this code
TAG POS=1 TYPE=A ATTR=href:mailto* EXTRACT=HREF

drawback of this code is that its gets email if its a hyperlink
but email can be text as well

twiiter also have @ so that has to checked as well

Firefox 47.0
iMacros VERSION BUILD=8970419
Windows 8.1
chivracq
Posts: 8201
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Find email on webpage

Post by chivracq » Mon Aug 22, 2016 8:22 pm

techimac wrote:I need to find email on a webpage.
I am using this code
TAG POS=1 TYPE=A ATTR=href:mailto* EXTRACT=HREF

drawback of this code is that its gets email if its a hyperlink
but email can be text as well

twiiter also have @ so that has to checked as well

Firefox 47.0
iMacros VERSION BUILD=8970419
Windows 8.1
We had a similar Thread a few months ago where I posted a few times...
You have many "E-mail Extractor" Sites on Internet where you can paste some amount of "Text" (could be your 'EXTRACT=HTM' from iMacros) and it will extract/list all E-mail Addresses found in it, quite accurate...
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
techimac
Posts: 287
Joined: Fri Feb 20, 2015 9:27 pm

Re: Find email on webpage

Post by techimac » Mon Aug 22, 2016 8:29 pm

Thanks a lot.
chivracq
Posts: 8201
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Find email on webpage

Post by chivracq » Mon Aug 22, 2016 8:35 pm

techimac wrote:Thanks a lot.
Yep, you're welcome, post your "final Solution", that can be useful for other Users as well, the Qt comes back regularly...
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
techimac
Posts: 287
Joined: Fri Feb 20, 2015 9:27 pm

Re: Find email on webpage

Post by techimac » Mon Aug 22, 2016 8:41 pm

without much research and very little efforts, I found these
since they solve my purpose, won't be doing more research for better options.

http://eel.surf7.net.my/
http://www.lite14.us/
techimac
Posts: 287
Joined: Fri Feb 20, 2015 9:27 pm

Re: Find email on webpage

Post by techimac » Mon Aug 22, 2016 8:45 pm

I will be using iMacros from excel
so I will use split function to seperate emails using comma as seperator.
techimac
Posts: 287
Joined: Fri Feb 20, 2015 9:27 pm

Re: Find email on webpage

Post by techimac » Mon Aug 22, 2016 10:08 pm

TAB T=1
TAG POS=1 TYPE=BODY ATTR=TXT:* EXTRACT=HTM
TAB OPEN
TAB T=2
URL GOTO=http://eel.surf7.net.my/
TAG POS=1 TYPE=TEXTAREA FORM=NAME:extractor ATTR=NAME:input CONTENT={{!EXTRACT}}
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:extractor ATTR=*

I am not able to extract output.
techimac
Posts: 287
Joined: Fri Feb 20, 2015 9:27 pm

Re: Find email on webpage

Post by techimac » Mon Aug 22, 2016 10:10 pm

TAG POS=1 TYPE=TEXTAREA ATTR=NAME:output extract=txt

so final code is

TAG POS=1 TYPE=BODY ATTR=TXT:* EXTRACT=HTM
TAB OPEN
TAB T=2
URL GOTO=http://eel.surf7.net.my/
TAG POS=1 TYPE=TEXTAREA FORM=NAME:extractor ATTR=NAME:input CONTENT={{!EXTRACT}}
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:extractor ATTR=*
TAG POS=1 TYPE=TEXTAREA ATTR=NAME:output extract=txt
techimac
Posts: 287
Joined: Fri Feb 20, 2015 9:27 pm

Re: Find email on webpage

Post by techimac » Tue Aug 23, 2016 3:57 pm

This is even better as I came across a website which doesn't display email in web page source but was there on the page


TAG POS=1 TYPE=HTML ATTR=TXT:*

EVENT TYPE=KEYPRESS SELECTOR="HTML" CHAR="a" MODIFIERS="ctrl"
EVENT TYPE=KEYPRESS SELECTOR="HTML" CHAR="c" MODIFIERS="ctrl"

TAB OPEN
TAB T=2
URL GOTO=http://www.lite14.us/
'URL GOTO=http://eel.surf7.net.my/
TAG POS=1 TYPE=TEXTAREA FORM=NAME:extractor ATTR=NAME:rawdata CONTENT={{!CLIPBOARD}}
PAUSE
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:extractor ATTR=*
TAG POS=1 TYPE=TEXTAREA FORM=NAME:extractor ATTR=NAME:rawdata EXTRACT=TXT
TAB CLOSE
Vlad42
Posts: 1
Joined: Tue Oct 11, 2016 8:59 am

Re: Find email on webpage

Post by Vlad42 » Tue Oct 11, 2016 9:14 am

to solve this problem I use this soft - https://www.atompark.com/web-email-extractor/.
chivracq
Posts: 8201
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Find email on webpage

Post by chivracq » Tue Oct 11, 2016 11:26 am

Vlad42 wrote:to solve this problem with this problem I've use this soft - https://www.atompark.com/web-email-extractor/.
Yeah..., but hum..., you should mention that it's a Commercial Software (Atomic Email Hunter ( € 84 / € 69.85 ))... (+ a "Free Trial" without any further Info...)

And, re-hum-hum..., I'm always a bit suspicious when I see Claims like "... it will harvest and collect thousands of relevant addresses ... within seconds." (and that one could be true maybe..., even if I'm still suspicious about the "within seconds"...), but this one "Extract from Facebook: Email extractor can easily handle hundreds of thousands emails extracted from different Facebook pages..." sounds a bit exaggerated to me...! :shock:
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
Post Reply