Skip to content
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

知乎收藏夹中的文章获取链接失败,以致阅读器无法抓取 #2781

Closed
Azureki opened this issue Aug 6, 2019 · 0 comments · Fixed by #2782
Closed

知乎收藏夹中的文章获取链接失败,以致阅读器无法抓取 #2781

Azureki opened this issue Aug 6, 2019 · 0 comments · Fixed by #2782

Comments

@Azureki
Copy link
Contributor

Azureki commented Aug 6, 2019

比如这个收藏夹
每一项的 guid & link 应该是文章的url,但是文章的 guid & link 都是 #。(回答是正常的)

然后我看了一下收藏夹页面的源码。

<h2 class="zm-item-title"><a target="_blank" class="post-link" href="https://zhuanlan.zhihu.com/p/46036804" data-za-element-name="Title">选择公理的初步理解</a></h2>

我觉得只要选取 值为 zm-item-title 的元素,然后提取title和link就可以了。

又看了一下rsshub zhihu collection 获取链接的代码find('a.meta-item')得到的是发布/编辑于的链接,而文章没有这个,只有回答有,所以无法获取文章的链接。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant