Ok te voy diciendo como queda todo:
Asi descargo el 1000000 de resultados separados en carpetas de 100000.
Código
On Error Resume Next For i = 1 To 100000 Set crack = CreateObject("WScript.Shell") crack.Run "wget -r -nd -P 100000 -A .html -e robots=off --no-check-certificate https://www.xxxxx.com/game/"&i&".html",vbhide wscript.sleep 500 next MsgBox "Tarea Finalizada",0,"Download"
Asi paso tu script de ayuda a los 100000 resultados
Código
On Error Resume Next For i = 1 To 100000 Set cmd = CreateObject("WScript.Shell") cmd.Run "cscript.exe .\Script.vbs .\game\100000\"&i&".html",vbhide wscript.sleep 500 next MsgBox "Tarea Finalizada",0,"Valor"
Tu script
Código
' Example: RegEx capture in textfile, By Elektro 'CScript.exe ".\Script.vbs" ".\1.html" ".\2.html" "etc... Option Explicit Dim args, arg, _ outPath, fullpath, fileName, fileExt, _ fso, file, fileContent, _ rgx, rgxMatches, rgxMatch, rgxValue Set args = WScript.Arguments If args.Count = 0 Then Wscript.Echo("Any filepath specified.") Wscript.Quit(1) End If outPath = ".\Output\100000\" Set fso = WScript.CreateObject("Scripting.FileSystemObject") If Not fso.FolderExists(outPath) Then Call fso.CreateFolder(outPath) End If ' El primer grupo de esta expresión captura el string "cash out:" plus el valor decimal. ' El cuarto grupo de esta expresión captura el valor decimal. Set rgx = New RegExp rgx.Pattern = "Cash.+Out.+\s+<\/\w+>\s+([\w\.]+)" rgx.IgnoreCase = True rgx.Global = True For Each arg in args fullPath = fso.GetAbsolutePathName(arg) fileName = fso.GetBaseName(fullPath) fileExt = fso.GetExtensionName(fullPath) fileContent = fso.OpenTextFile(fullPath, 1).ReadAll Set rgxMatches = rgx.Execute(fileContent) Set file = fso.CreateTextFile(outPath & "\" & fileName & ".txt") Wscript.Echo("[+] Processing file: " & fullPath) For Each rgxMatch in rgxMatches rgxValue = rgxMatch.Submatches(0) Wscript.Echo(rgxValue) Call file.WriteLine("Cash Out: " & rgxValue) Next file.Close Next Wscript.Quit(0)
Así uno todas las salidas de tu script en un solo fichero con 100000 lineas
Código
On Error Resume Next For i = 1 To 100000 Fichero = "C:\Play\output\100000\" & i &".txt" Set objFSO = CreateObject("Scripting.FileSystemObject") filepath = Fichero Set objInputFile = objFSO.OpenTextFile(filepath) tmpStr = objInputFile.ReadLine Set texto = CreateObject("Scripting.FileSystemObject") Set salida = texto.CreateTextFile (".\Salida100000.txt", True) salida.WriteLine (Mid(tmpStr,1,50)) & n Next MsgBox "Tarea Finalizada",0,"Play"
Y después puedo realizar el análisis importando Salida100000.txt a excel pero realmente todo es para ver esto que pregunte aqui http://foro.elhacker.net/scripting/ayuda_con_excel-t430543.0.html, ya que puedo ver mas cosas pero la que mas me interesa aun no se jajajajajajaj.
Que tengo un script en python que lo hace pero me gustaría ver igual como se soluciona en excel .
Aquí la versión en español de lo que pasaste para los que no dominen mucho el ingles: http://es.wikipedia.org/wiki/Expresi%C3%B3n_regular
Gracias por todo.