I need to parse a specific url inside htm page
I start with this example
call script Web_page string_to_parse
call go.bat http://www.wikipedia.org/ http://it.wikipedia.org/
go.bat:
Code: Select all
for /F "usebackq tokens=1-3 delims=," %%a in (`cscript /nologo GetHtml.vbs %1`) DO (
echo(%%a
I find hard to do the next line
find %2 %%a > parse_url.txt
)
GetHtml.vbs
Code: Select all
'GetHTML.vbs
URL = WScript.Arguments.Item(0)
Set WshShell = WScript.CreateObject("WScript.Shell")
Set http = CreateObject("Microsoft.XmlHttp")
http.open "GET", URL, FALSE
http.send ""
WScript.echo http.responseText
Regards
Dario