diff --git a/README.md b/README.md index eb5529e..ca3e135 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,16 @@ The document ID is: `1898f455874769eae009581b6bd97f192279bff4` You can find this ID in the URL of any Baidu Wenku document page. It's the string of characters between `/view/` and `.html` in the URL. +## Test API + +A test API endpoint is available for testing PDF downloads: + +``` +https://lostjay.xyz/api/get_pdf?doc_id=6bb03e2669dc5022aaea00e5 +``` + +**Important Note**: Only one PDF can be processed at a time. If the server is busy, you may receive a "Server is busy, please try again later" response. + ## Prerequisites - Python 3.11 or higher diff --git a/README_zh.md b/README_zh.md index 5aee349..c418817 100644 --- a/README_zh.md +++ b/README_zh.md @@ -30,6 +30,16 @@ https://wenku.baidu.com/view/1898f455874769eae009581b6bd97f192279bff4.html 您可以在任何百度文库文档页面的 URL 中找到此 ID。它是 URL 中 `/view/` 和 `.html` 之间的字符串。 +## 测试 API + +提供测试 API 端点用于测试 PDF 下载: + +``` +https://lostjay.xyz/api/get_pdf?doc_id=6bb03e2669dc5022aaea00e5 +``` + +**重要提示**:同一时间只能处理一个 PDF。如果服务器繁忙,您可能会收到"Server is busy, please try again later"的响应。 + ## 环境要求 - Python 3.11 或更高版本