zhihuzhuanlan2pdf
zhihuzhuanlan2pdf copied to clipboard
好像不行了?
测试网址:https://zhuanlan.zhihu.com/c_80131470
Traceback (most recent call last):
File "start.py", line 55, in <module>
zhuanlan_to_pdf(slug)
File "start.py", line 31, in zhuanlan_to_pdf
cover, article_list = zl.get_result()
File "G:\git\zhihuzhuanlan2pdf\zhuanlan.py", line 80, in get_result
return self._get_cover(), self._get_article_list()
File "G:\git\zhihuzhuanlan2pdf\zhuanlan.py", line 74, in _get_article_list
article_list.append(article.get_article_html(url=url))
File "G:\git\zhihuzhuanlan2pdf\article.py", line 156, in get_article_html
self.get_article_dict(url=url)
File "G:\git\zhihuzhuanlan2pdf\article.py", line 37, in get_article_dict
json_obj = session.get(url=url).json()[0]
IndexError: list index out of range