Page 1 of 1

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

Posted: 23 Aug 2008 19:02
by budhax
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::___________

Posted: 27 Aug 2008 12:36
by budhax
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