@echo off
setlocal enabledelayedexpansion set infile=free.txt
set url=https://www.google.com/?gws_rd=ssl
set pl="http://www.66ip.cn/mo.php?sxb=&tqsl=100&port=&export=&ktip=219&sxa=&submit=%%CC%%E1++%%C8%%A1&textarea=" echo --- %date% %time% available proxy lists --->>available.txt wget %pl% -O down.txt
type down.txt|grep -Eio "[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,5}">%infile%
:: del down.txt 1>nul 2>nul call :G_getrows %infile%
set /a checkline=1
for /f "delims=" %%i in (%infile%) do (
call :checkProxy %%i !checkline!
del temp.txt 1>nul 2>nul
set /a checkline=!checkline!+1
)
echo --------------done----------------
pause >nul
exit /b :checkProxy
set proxy=%1
wget -e https_proxy="%proxy%" -t 1 -T 1 %url% -O temp.txt 1>nul 2>nul
if %errorlevel% NEQ 0 echo %2/%lines%. %proxy% unavailable
if %errorlevel% EQU 0 (
echo %2/%lines%. %proxy% available
echo %proxy%>>available.txt
)
exit/b :G_getrows
set /a lines=0
for /f %%i in ('findstr /n .* %1') do (
set /a lines=lines+1
)
exit/b

GetCheckProxy.7z

GetCheckProxy的更多相关文章

随机推荐

  1. AndroidStudio替换空行

    (1)在Edit Replace In Path输入框中输入:^\s*\n (\s代表任何空白字符,\S代表任何非空白字符,*代表任意个数,\n匹配换行符) (2)Replace With输入框的值为 ...

  2. 腾讯云cos封装

    public class CosUtil { int _appId = xxxxx; string _secretId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ...

  3. From 192.168.25.133 icmp_seq=238 Destination Host Unreachable 虚拟机ping主机不通

    From 192.168.25.133 icmp_seq=238 Destination Host Unreachable 虚拟机ping主机不通,但是主机可以ping通虚拟机,虚拟机ping不通外网 ...

  4. Spring Boot 起步

    ……………………………………………………………………………………………………………… [应用配置]application.yml [port][context-path][datasource][jp ...

  5. python 读 json 文件

    一个汽车图标的训练集:train.json [{"items": [{"label_id": "0028", "bbox" ...

  6. 哈希函数(hash函数)

    hash,—般译为“散列”,也可以直接音译为“哈希”,是对输入的任意长度(又称预映射),通过哈希算法,转换成固定长度的哈希值输出.这种转换是一种压缩映射,即,哈希值空间通常比输入空间小得多,不同的输入 ...

  7. Django的csrf中间件

    csrf中间件 ​ csrf 跨站请求伪造 ​ 补充两个装饰器: ​ from django.views.decorators.csrf import csrf_exempt,csrf_protect ...

  8. Hbase思维导图之调优

  9. 【vue】中 provide 和 inject 的使用方法

    <div id="app"> hello <my-button> </my-button> </div> <script sr ...

  10. 往github上传代码忽略node_modules文件夹

    首先必须在你初始化  git 仓库的那个文件夹建立 .gitigonre 文件,在这个文件夹里面写入下面代码 node_modules npm-debug.log package-lock.json ...