推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
thomass
V2EX  ›  Python

爬拉勾碰到的问题,求帮助

  •  
  •   thomass · May 30, 2019 · 3831 views
    This topic created in 2714 days ago, the information mentioned may be changed or developed.
    报错
    requests.exceptions.SSLError: HTTPSConnectionPool(host='www.lagou.com', port=443): Max retries exceeded with url: /jobs/positionAjax.json?city=%E5%8C%97%E4%BA%AC&needAddtionalResult=false (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))
    10 replies  •  2019-06-05 10:49:42 +08:00
    MrAcanyi
    MrAcanyi
    May 30, 2019
    1
    https 协议验证问题,verify=False,试下
    thomass
    thomass
    OP
    May 30, 2019
    2
    @MrAcanyi 还是不行,,好奇 SSL module is not available 是啥意思
    MrAcanyi
    MrAcanyi
    May 30, 2019
    3
    避开 ssl 的验证问题,requests 模块么
    thomass
    thomass
    OP
    May 30, 2019
    4
    @MrAcanyi 是 requests 模块,那要怎么解决
    lusi1990
    lusi1990
    May 31, 2019 via Android
    5
    猜测是是 ssl 模块没有装好,是自己编译的 python 吗?如果是的话先装 SSL devel,然后重新编译
    beforeuwait
    beforeuwait
    May 31, 2019
    6
    要装一个 openssl 吧
    thomass
    thomass
    OP
    May 31, 2019
    7
    @lusi1990 是安装的 anaconda,这个问题是在 pycharm 上运行出现的,在终端上程序都正常运行的
    thomass
    thomass
    OP
    May 31, 2019
    8
    @beforeuwait 安装了的,觉得是 pycharm 的问题,用 spyder 都没报错
    rocketman13
    rocketman13
    Jun 4, 2019
    9
    urllib3.disable_warnings() 试试
    woshi88
    woshi88
    Jun 5, 2019
    10
    SSL module is not available SSL 证书模块不可用

    @thomass
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2979 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:47 · PVG 18:47 · LAX 02:47 · JFK 05:47
    ♥ Do have faith in what you're doing.