|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
Re : NaturalJ0
谢谢兄的提议。
我想了一下,发现wget里面有一个 -S 参数可以统计下载的详细信息,包括了连接的速度,速度是通过前后两个时间间接得到的,如果要排序的话,必须要分析这个 -S 参数得到的信息,这样势必会比较麻烦。而且楼顶的代码里面,设置的wget超时获取网页的时间是3秒钟,这样检测出来的速度应该是可以的,如果你要更快的代理连接速度,那么可以修改 -T 参数的值。
Re ccwan :
多谢兄弟的鼓励。
Re: NaturalJ0
Thanks for your suggestion, brother.
After thinking about it, I found that there is a -S parameter in wget that can count the detailed download information, including the connection speed. The speed is indirectly obtained through the front and back two times. If you want to sort, you must analyze the information obtained from the -S parameter, which will be relatively troublesome. Moreover, in the code at the top of the post, the time for wget to time out to obtain the web page is set to 3 seconds, so the detected speed should be acceptable. If you want a faster proxy connection speed, you can modify the value of the -T parameter.
Re: ccwan
Thanks for your encouragement, brother.
|
|
2006-11-28 05:58 |
|
|
wang6610
银牌会员
    
积分 1246
发帖 488
注册 2003-11-11
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
它会会接着检测第2、3...页吗?
Will it continue to check pages 2, 3...?
|
|
2006-11-28 06:51 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
Re : wang6610
它只能检测指定的那一业网页代理列表,如果你想检测其它的页面的代理列表,可以手动添加URL到批处理里面。我也会尽量完善它的。
Re: wang6610
It can only detect the specified industry web proxy list. If you want to detect the proxy lists of other pages, you can manually add URLs to the batch processing. I will also try to improve it as much as possible.
|
|
2006-11-28 11:39 |
|
|
yunlin
新手上路

积分 5
发帖 7
注册 2006-11-25
状态 离线
|
|
2006-11-28 13:10 |
|
|
bigcarp
初级用户
 
积分 21
发帖 6
注册 2006-12-17
状态 离线
|
|
2007-1-8 23:39 |
|
|
lixinwu
初级用户
 
积分 31
发帖 14
注册 2006-7-12
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
真是不错,可惜只能验证那一个网站的代理,换一个就不行了,那个网站的代理全部失效了,最好找个能天天更新的验证。或者把代码编写的智能一些,可以对付大部分的代理站点。
It's really good, but it's a pity that it can only verify the proxy of that one website. It doesn't work when changing to another one. All the proxies of that website have become invalid. It's best to find a verification that can be updated every day. Or make the code more intelligent, so that it can deal with most proxy sites.
|
|
2007-1-25 17:00 |
|
|
lixinwu
初级用户
 
积分 31
发帖 14
注册 2006-7-12
状态 离线
|
|
2007-1-25 17:55 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
|
2007-1-26 02:01 |
|
|
lixinwu
初级用户
 
积分 31
发帖 14
注册 2006-7-12
状态 离线
|
『第 24 楼』:
使用 LLM 解释/回答一下
好啊,请p-proxy大侠来帮帮忙啊!
Okay, please let the p-proxy expert come and help!
|
|
2007-1-26 03:03 |
|
|
lixinwu
初级用户
 
积分 31
发帖 14
注册 2006-7-12
状态 离线
|
『第 25 楼』:
使用 LLM 解释/回答一下
哦,原来是个程序啊。。。。使用了一下,可惜不支持这个网站的代码
Oh, it turns out it's a program... I used it, but unfortunately it doesn't support the code of this website
|
|
2007-1-26 04:23 |
|
|
lixinwu
初级用户
 
积分 31
发帖 14
注册 2006-7-12
状态 离线
|
『第 26 楼』:
使用 LLM 解释/回答一下
用楼主的代码改一下应该可以提取,楼主这个也简洁的多,体积小的多。。。
Modifying based on the owner's code should allow extraction. The owner's code is also much more concise and has a much smaller size...
|
|
2007-1-26 04:24 |
|
|
honghunter
中级用户
  
积分 321
发帖 135
注册 2007-2-4
状态 离线
|
『第 27 楼』:
使用 LLM 解释/回答一下
不好意思,翻老贴了。
主要是一直没有看懂下面几句,希望能有大侠给讲解一二:
1 set set=
2 set set=%%a
3 set "set=!set:‍=!"
4 set "set=!set!:%%b"
主要疑问:
1,是否系统的关键字作为环境变量名字,不会有问题吗?
2,为什么每次设置前,都要设置为空一次?第一句可以省略吗?
3,看网页的原始内容是:
<tr><td>202.105.182.20‍:80</td><td>HTTP</td><td>328,813,813</td><td>广东省珠海市</td></tr>
不太明白代理地址截取出来的算法。
I'm sorry, I'm replying to an old post.
Mainly I haven't understood the following sentences clearly all the time, and I hope some expert can explain them to me:
1 set set=
2 set set=%%a
3 set "set=!set:‍=!"
4 set "set=!set!:%%b"
Main questions:
1, Will there be no problem if the system's keyword is used as the environment variable name?
2, Why is it necessary to set it to empty once before each setting? Can the first sentence be omitted?
3, Looking at the original content of the web page:
<tr><td>202.105.182.20‍:80</td><td>HTTP</td><td>328,813,813</td><td>Zhuhai City, Guangdong Province</td></tr>
I don't quite understand the algorithm for intercepting the proxy address.
|

探讨批量下载与智能化的下载 |
|
2007-12-4 07:16 |
|
|
honghunter
中级用户
  
积分 321
发帖 135
注册 2007-2-4
状态 离线
|
『第 28 楼』:
使用 LLM 解释/回答一下
还有个问题,就是当源代码中的数据,变成如下形式的时候,怎么兼顾两张方式哪?
<tr><td>211.142.213.11‌‍:80</td><td>HTTP</td><td>110,7203,7203</td><td>湖南省长沙市 移动</td></tr>
There is also a question, that is, when the data in the source code becomes the following form, how to take into account the two methods?
<tr><td>211.142.213.11‌‍:80</td><td>HTTP</td><td>110,7203,7203</td><td>Hunan Province, Changsha City, Mobile</td></tr>
|

探讨批量下载与智能化的下载 |
|
2007-12-4 07:59 |
|
|
honghunter
中级用户
  
积分 321
发帖 135
注册 2007-2-4
状态 离线
|
『第 29 楼』:
使用 LLM 解释/回答一下
REM $Id: get.proxy.bat 80 2007-12-04 08:21:12Z honghunter $
REM 原作者:lxmxn
REM 摘自:http://www.cn-dos.net/forum/viewthread.php?tid=25126&fpage=0&highlight=&page=1
REM
IF "%ORG_PATH%"=="" CALL D:\dev\dps4e\check_proxy\env_setting.bat
@ECHO OFF&SETLOCAL ENABLEDELAYEDEXPANSION&title 代理检测
IF "%1"=="sub1" GOTO sub1
:main
IF EXIST useproxy.txt DEL /a/q useproxy.txt
FOR /L %%A IN (1,1,10) DO CALL %0 sub1 %%A
START useproxy.txt
GOTO :eof
:sub1
SHIFT /1
ECHO;>>useproxy.txt
ECHO 于 %date% %time% 检测 http://www.cnproxy.com/proxy%1.html 可用代理如下: >>useproxy.txt
ECHO;>>useproxy.txt
ECHO ############################################################# >>useproxy.txt
IF EXIST proxy%1.html DEL proxy%1.html /a/s >nul
wget http://www.cnproxy.com/proxy%1.html >nul 2>nul
:html_down_ok
title 正在检测proxy%1,请稍等....
FOR /f "tokens=1,2 delims=^<trd>: " %%a IN ('type proxy%1.html ^| findstr /c:"HTTP" ') DO (
set set=
set set=%%a
SET "tempset=!set:‌‍=!"
IF "!tempset!"=="!set!" SET "tempset=!set:‍=!"
set "set=!tempset!:%%b"
ECHO 正在检测 !set! 代理,请稍等....
wget -q -T 3 -t 1 -e "http_proxy=!set!" http://www.dps4e.com -O - >nul 2>nul && echo 检测到 ******* !set! ******* 代理可用&&echo ----!set! >>useproxy.txt
)
IF EXIST proxy%1.html DEL proxy%1.html /a/s >nul
GOTO :eof
Last edited by honghunter on 2007-12-4 at 04:40 PM ]
```
REM $Id: get.proxy.bat 80 2007-12-04 08:21:12Z honghunter $
REM Original author: lxmxn
REM From: http://www.cn-dos.net/forum/viewthread.php?tid=25126&fpage=0&highlight=&page=1
REM
IF "%ORG_PATH%"=="" CALL D:\dev\dps4e\check_proxy\env_setting.bat
@ECHO OFF&SETLOCAL ENABLEDELAYEDEXPANSION&title Proxy Detection
IF "%1"=="sub1" GOTO sub1
:main
IF EXIST useproxy.txt DEL /a/q useproxy.txt
FOR /L %%A IN (1,1,10) DO CALL %0 sub1 %%A
START useproxy.txt
GOTO :eof
:sub1
SHIFT /1
ECHO;>>useproxy.txt
ECHO Detected available proxies for http://www.cnproxy.com/proxy%1.html on %date% %time%: >>useproxy.txt
ECHO;>>useproxy.txt
ECHO ############################################################# >>useproxy.txt
IF EXIST proxy%1.html DEL proxy%1.html /a/s >nul
wget http://www.cnproxy.com/proxy%1.html >nul 2>nul
:html_down_ok
title Checking proxy%1, please wait....
FOR /f "tokens=1,2 delims=^<trd>: " %%a IN ('type proxy%1.html ^| findstr /c:"HTTP" ') DO (
set set=
set set=%%a
SET "tempset=!set:‌‍=!"
IF "!tempset!"=="!set!" SET "tempset=!set:‍=!"
set "set=!tempset!:%%b"
ECHO Checking proxy !set!, please wait....
wget -q -T 3 -t 1 -e "http_proxy=!set!" http://www.dps4e.com -O - >nul 2>nul && echo Detected ******* !set! ******* proxy available&&echo ----!set! >>useproxy.txt
)
IF EXIST proxy%1.html DEL proxy%1.html /a/s >nul
GOTO :eof
Last edited by honghunter on 2007-12-4 at 04:40 PM ]
```
|

探讨批量下载与智能化的下载 |
|
2007-12-4 08:04 |
|
|
jethroso
新手上路

积分 4
发帖 4
注册 2008-11-13
状态 离线
|
『第 30 楼』:
使用 LLM 解释/回答一下
刚试试不行啊?怎么全是######号呢?
 ?
Last edited by jethroso on 2008-11-20 at 12:24 ]
Just tried it and it didn't work? Why are there all ###### signs?
 ?
Last edited by jethroso on 2008-11-20 at 12:24 ]
|
|
2008-11-20 12:20 |
|