We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在一个专栏里有大于100个的文章时,该脚本最大只能保存100个文章。 查看代码后发现 _articles 方法中的 'data = res.json().get('data', {})' 返回值中的list最大只有100。如图:
The text was updated successfully, but these errors were encountered:
有什么完善的方法吗?
Sorry, something went wrong.
390 def _articles(self, cid, pro): 391 """ 获取文章列表接口方法 """ 392 global ALL_ARTICLES 393 log.info("请求获取文章列表接口:") 394 url = "https://time.geekbang.org/serv/v1/column/articles" 395 method = "POST" 396 headers = deepcopy(self.common_headers) 397 headers["Host"] = "time.geekbang.org" 398 headers["Origin"] = "https://time.geekbang.org" 399 headers["Cookie"] = self.cookie.cookie_string 400 params = { 401 "cid": cid, 402 "size": 200, 403 "prev": 0, 404 "order": "earliest", 405 "sample": "false" 406 }
"size": 200 这里默认是 100 ,改大一些看看呢
No branches or pull requests
在一个专栏里有大于100个的文章时,该脚本最大只能保存100个文章。
![image](https://user-images.githubusercontent.com/58510192/125604313-0ad9f472-7c8a-464d-8318-e6865103341a.png)
查看代码后发现
_articles 方法中的 'data = res.json().get('data', {})' 返回值中的list最大只有100。如图:
The text was updated successfully, but these errors were encountered: