Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: get proxy ip also need user-agent #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Monsterstars
Copy link

执行:
python DirScan.py baidu.com ./dictionary/

报错:

      ___  __       _  _
     |__ \/_ |     | |(_)
        ) || |   __| | _  _ __   ___   __ _   ___  _ __
       / / | |  / _` || || '__| / __| / _` | / __|| '_ \
      / /_ | | | (_| || || |    \__ \| (_| || (__ | | | |
     |____||_|  \__,_||_||_|    |___/ \__,_| \___||_| |_|

输入的路径为./dictionary/
......
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.kuaidaili.com', port=443): Max retries exceeded with url: /free/inha/1/ (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response')))

原因:请求www.kuaidaili.com需要带上UA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant