Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
目的
使用代码中
_download_chapter_content
方法,套了一个API flask服务,方便换源阅读器能够访问小说内容。使用方法
运行
python fanqie_api_server.py
,之后访问如下地址 即可获得小说内容http://YOUR_ADDRESS:4888/download_chapter_content?chapter_id=${extractedId}
返回为JSON格式,内容在response.content中,默认每24小时刷新一次cookie
在linux服务器中使用
nohup python ./fanqie_api_server.py >> info.log 2>&1 &
示例
http://YOUR_ADDRESS:4888/download_chapter_content?chapter_id=7369441396257718846