2017-09-06 81 views
0

我已經下載了安裝的代理代理以及aiodns,maxminddb和aiohttp。我不斷收到下面的錯誤消息。任何想法爲什麼?我在Windows上使用Anaconda Python 3。我看過其他論壇遇到同樣的問題,但他們無法解決它。有任何想法嗎?謝謝。我想要一個好的代理檢查器,因爲它很多代理失敗或不工作。代理代理錯誤使用異步代替

enter image description here

我進入proxybroker find --types HTTP HTTPS --lvl High --countries US --strict -l 10

http://proxybroker.readthedocs.io/en/latest/

我已經嘗試了重新安裝,以解決這一點,但似乎沒有要任何修復和似乎有公開船票這個問題。任何想法如何修復或移動到不同的代理項目?

C:\Windows\system32>proxybroker find --types HTTP HTTPS --lvl High --countries US --strict -l 10 
    C:\Users\Bain3\Anaconda3\lib\site-packages\aiohttp\client.py:576: DeprecationWarning: Use async with instead 
     warnings.warn("Use async with instead", DeprecationWarning) 
    C:\Users\Bain3\Anaconda3\lib\site-packages\aiohttp\helpers.py:139: DeprecationWarning: ClientSession.close() is a coroutine 
     warnings.warn(self._msg, DeprecationWarning) 

回答

1

他們似乎沒有更新的最後1年,他們的requirements.txt低於

aiohttp 
aiodns 
maxminddb 

這是沒有約束力的任何版本。這是錯誤的,因爲新的軟件包更改可能會改變程序的工作方式。

無論如何,解決的辦法是繼續舊版本的aiohttp。足夠老到2.0.0。所以在安裝此軟件包運行

pip install aiohttp==2.0.0 

$ proxybroker find --types HTTP HTTPS --lvl High --countries US --strict -l 10 
/Users/tarun.lalwani/.virtualenvs/so2/lib/python3.6/site-packages/aiohttp/client.py:565: DeprecationWarning: Use async with instead 
    warnings.warn("Use async with instead", DeprecationWarning) 
<Proxy US 0.43s [HTTP: High] 159.203.112.118:3128> 

警告,但該計劃仍然啓動運行良好後

+0

感謝堆。但它仍然會提供棄用警告。 proxybroker grab - 國家澳大利亞 - 限制10 - outfile ./proxies.txt往往不適用於澳大利亞。它確實工作,但美國代理是非常棒的,雖然我覺得有些命令可能仍然不起作用,因爲總是存在棄用警告:https://ibb.co/g0nsTa – Tetora

+0

嘗試用'--countries AU'代替 –

+0

不幸的是,這個問題同樣存在。使用澳大利亞或澳大利亞時不會生成任何文本文件 – Tetora

0

你需要卸載原來的版本ProxyBroker,並從修補叉https://github.com/Lookyan/ProxyBroker重新安裝。 它與最新版本aiohttp(驗證2.2.3)一起使用。

原作者現在不支持其原作,並且需要patch

+0

我試過了。不幸的是,這並沒有奏效。 aiohttp == 2.0.0爲我工作,儘管他們沒有澳大利亞代理人,但這是一種恥辱。 – Tetora