-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
请问怎么保存视频页面链接 #587
Comments
需要在page_parser.py修改get_one_weibo方法,你好像只是实现了有获取能力的方法,但是没有使用,需要在get_one_weibo中使用这个方法。 |
感谢回复🙏 现在可以写入获取到的链接了,但是没有链接时写入的是空白,而不是“无”。 请问还需要改哪里吗? |
听从了Chatgpt的建议,在 def get_video_page_url(self, info) 中 添加:
现在可以写入 无 了。 一开始想不明白为什么 get_video_page_url(self, info) 需要再赋值,刚才突然想到,如果链接不存在的话,
这里生成应该是空白,所以就写入空白? 考虑到视频原url过期后就打不开了,而视频页面url,只要微博未删除,即便设置了“仅半年可见”,也是可以通过自己发布 正文为页面url 的微博 来看到视频的;要不要考虑一下把原本写入视频url改为视频页面url呢? |
暂时没有这个打算。 |
好吧。感谢大神的开发和指导❤️ |
纯python小白,自己试着作了以下更改:
1: 仿照"""获取微博视频url""",在 page_parser.py 增加"""获取微博视频页面的链接""":
但生成的csv文件中,“视频页面url”一列是空白的。
请问有哪一步出错了吗?还是我还需要更改哪里?
The text was updated successfully, but these errors were encountered: