-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Open
Labels
questionFurther information is requestedFurther information is requested
Description
⚠️ 提交前确认
- 我已经仔细阅读了项目使用过程中的常见问题汇总
- 我已经搜索并查看了已关闭的issues
- 我确认这不是由于滑块验证码、Cookie过期、Cookie提取错误、平台风控等常见原因导致的问题
❓ 问题描述
目前知乎似乎还没有基于问题,爬取问题下所有答案的功能。
在zhihu_config.py中
# 指定知乎用户URL列表
ZHIHU_CREATOR_URL_LIST = [
"https://www.zhihu.com/people/yd1234567",
# ........................
]
# 指定知乎ID列表
ZHIHU_SPECIFIED_ID_LIST = [
"https://www.zhihu.com/question/826896610/answer/4885821440", # 回答
"https://zhuanlan.zhihu.com/p/673461588", # 文章
"https://www.zhihu.com/zvideo/1539542068422144000", # 视频
]这里只有回答的选项https://www.zhihu.com/question/826896610/answer/4885821440
没有问题的选项https://www.zhihu.com/question/826896610
如果将代码改成
ZHIHU_SPECIFIED_ID_LIST = [
"https://www.zhihu.com/question/826896610" # 问题
]得不到任何结果。
请问能否增加基于问题的爬取功能,个人拙见认为基于问题下的回答进行分析研究是比较常见的需求,希望能得到认可。
🔍 使用场景
- 目标平台: 知乎
- 使用功能: 问题页面爬取
💻 环境信息
- 操作系统: MacOS
- Python版本: 3.12.12
- 是否使用IP代理: 无
- 是否使用VPN翻墙软件:无
- 目标平台(抖音/小红书/微博等): 知乎
📋 错误日志
无📷 错误截图
无
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested