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

增加api服务器方法以及更新README #75

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

huijian222
Copy link

目的

使用代码中_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
image

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 this pull request may close these issues.

1 participant