📌  相关文章
📜  urllib.error.HTTPError:HTTP 错误 403:禁止 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:04.277000             🧑  作者: Mango

代码示例1
from urllib.request import Request, urlopen

req = Request('http://www.cmegroup.com/trading/products/#sortField=oi&sortAsc=false&venues=3&page=1&cleared=1&group=1', headers={'User-Agent': 'Mozilla/5.0'})
webpage = urlopen(req).read()