本帖最后由 ivor 于 2012-2-8 17:11 编辑
回复 4# wewe-b - @echo off & setlocal ENABLEDELAYEDEXPANSION
- set /p website=请输入网页:*.html
- wget http://www.51proxied.com/%website%
- (for /f "tokens=1,2 delims=>" %%a in ('findstr "<td" %website%') do (
- echo %%b
- ))>Temp
- for /f "delims=<" %%c in (Temp) do (
- set /a count+=1
- if !count! equ 2 set ip=%%c
- if !count! equ 3 echo !ip!:%%c >>proxy.txt
- if !count! equ 4 set count=0
- )
- erase %website% Temp
- pause
复制代码 因为我还不知道wget如果指定保存的html文件名,所以不能做的太智能,有BUG再反馈吧,还可以优化,本人懒得很 呵呵,没问题就等后面的人继续发更优秀的来替代我这个 (*^__^*) 嘻嘻…… |