-
大小: 348KB文件類型: .zip金幣: 1下載: 0 次發(fā)布日期: 2021-01-09
- 語(yǔ)言: 其他
- 標(biāo)簽: 考試??學(xué)習(xí)??python??
資源簡(jiǎn)介
需要安裝:
pip install termcolor
MoMo-aiohttp.py在Py3.x下運(yùn)行,需要安裝aiohttp
代碼片段和文件信息
#encoding:?utf8
import?aiohttp
import?asyncio
from?termcolor?import?colored
from?requests?import?get
import?re
import?time
def?getProxy(completion?TargetNum?proxynum?ProxyList):
????global?proxies
????if?completion?>=?TargetNum:
????????return?0
????print(‘[+]?%s‘?%?colored(‘get?proxy...‘?‘blue‘?attrs=[‘bold‘])?end=‘‘)
????while?1:
????????try:
????????????url?=?‘http://www.89ip.cn/tqdl.html?num=%s‘?%?proxynum
????????????html?=?get(url).text
????????????proxies?=?set(re.findall(
????????????????r“[0-9]{13}\.[0-9]{13}\.[0-9]{13}\.[0-9]{13}:[0-9]+“?html))?-?set(ProxyList)
????????????if?not?len(proxies):
????????????????print(‘\n??[-]Waiting‘)
????????????????time.sleep(3)
????????????????continue
????????????print(colored(‘[%d]‘?%?len(proxies)?‘yellow‘?attrs=[‘bold‘])?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-02-25?12:36??MoMo-master\
?????文件????????2144??2019-02-25?12:36??MoMo-master\MoMo-aiohttp.py
?????文件????????2921??2019-02-25?12:36??MoMo-master\MoMo.py
?????目錄???????????0??2019-02-25?12:36??MoMo-master\PicForREADME\
?????文件??????285723??2019-02-25?12:36??MoMo-master\PicForREADME\2018-11-19_19-27-21.png
?????文件???????83041??2019-02-25?12:36??MoMo-master\PicForREADME\example.png
?????文件????????3040??2019-02-25?12:36??MoMo-master\README.md
評(píng)論
共有 條評(píng)論