jackfrued / jackfrued/Python-100-Days

我的requests模块有点问题

Open
#1,201 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
187k
Forks
55.8k
PR merge metrics
No merged PRs in 30d

Description

我的requests模块有点问题,好像遇到了SSL 证书问题(deepseek告诉我的),每次写代码都要加上verify=false
例如:import requests

resp = requests.get('https://api.github.com/zen')
print(resp.text)
上面这段会报错,好像是SSL证书问题

只有这样写才行:
import requests
resp = requests.get('https://api.github.com/zen', verify=False)
print(resp.text)
按照deepseek说的,我已经下载了python官方的解释器,还是SSL证书有问题
有必要解决吗?跳过验证的影响大吗?以及如何解决?
求问各位大佬

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No project file or test is named. Reproduce the Python requests example against https://api.github.com/zen and capture the exact SSL error, then inspect the local certificate setup; done means explaining the cause and identifying a verified fix that does not disable certificate validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.