Extract e-mail from HTML file (next step?)

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
budhax
Posts: 63
Joined: 09 Oct 2006 12:25

Extract e-mail from HTML file (next step?)

#1 Post by budhax » 23 Aug 2008 19:02

Hello,
What could be the next step of this script bellow to extract e-mail (1 by line) from HTML file like the source of this:

http://www.directories.ch/pagesjaunes/b ... ing&geo=GE


** USAGE: Drag and drop a HTML file ON the script.

Thanks


Code: Select all

@ECHO OFF
@SETLOCAL ENABLEDELAYEDEXPANSION
CD /D "%~DP1"
IF "%~1"=="" (SET ErrU=1&GOTO:FinE)

ECHO.------------------------------
ECHO.Calcul en cours.
ECHO.Patientez ...
ECHO.

SET FN=%~nx1
SET FT1=%~n1_1.txt
TYPE Nul>%FT1%
FINDSTR /i /C:"MailTO" "%FN%">%FT1%

GOTO:FinN

:FinE
COLOR 0C
IF DEFINED ErrU (ECHO.***  USAGE : DRAG and DROP a file!)
:FinN
ENDLOCAL&ECHO.&ECHO.END. BYE ......&PING -n 2 LocalHost>Nul&EXIT /b::___________

budhax
Posts: 63
Joined: 09 Oct 2006 12:25

#2 Post by budhax » 27 Aug 2008 12:36

I found other Javascript tools (extracting e-mail):

http://javascript.internet.com/forms/extract-email.html (basic but fine)

http://www.surf7.net/product/tools/extractor.php (more option and remove duplicate items)


And a solution from tlem:
http://astase.com/forums/viewtopic.php?pid=17727#p17714

Post Reply