build: 更新依赖版本要求

This commit is contained in:
JoeanAmier 2024-10-31 19:50:41 +08:00
parent bc436682fb
commit 856b4ece98
5 changed files with 18 additions and 4 deletions

View File

@ -15,7 +15,6 @@
<br>
<p>🔥 <b>小红书链接提取/作品采集工具</b>:提取账号发布、收藏、点赞、专辑作品链接;提取搜索结果作品链接、用户链接;采集小红书作品信息;提取小红书作品下载地址;下载小红书无水印作品文件!</p>
<p><strong>⚠️ 2024/9/24: 由于小红书规则更新,使用版本号低于 <code>1.7.1</code> 的用户脚本有封号风险,请及时更新用户脚本后再使用!</strong></p>
<p><strong>⚠️ 2024/10/13: 由于作品链接携带日期信息,使用先前日期获取的作品链接可能会被风控,建议下载作品文件时使用最新获取的作品链接!</strong></p>
<p>⭐ 本项目完全免费开源,无任何收费功能,请勿上当受骗!</p>
<h1>📑 项目功能</h1>
<ul><b>程序功能</b>
@ -162,6 +161,11 @@ def api_demo():
response = requests.post(server, json=data)
print(response.json())
</pre>
<h1>⚠️ 其他说明</h1>
<ul>
<li>由于作品链接携带日期信息,使用先前日期获取的作品链接可能会被风控,建议下载作品文件时使用最新获取的作品链接</li>
<li>Windows 系统需要以管理员身份运行程序才能读取 Chromium、Chrome、Edge 浏览器 Cookie</li>
</ul>
<h1>🕹 用户脚本</h1>
<p>如果您的浏览器安装了 <a href="https://www.tampermonkey.net/">Tampermonkey</a> 浏览器扩展程序,可以添加 <a href="https://raw.githubusercontent.com/JoeanAmier/XHS-Downloader/master/static/XHS-Downloader.js">用户脚本</a>,无需下载安装即可体验项目功能!</p>
<img src="static/screenshot/脚本安装教程.png" alt="">

View File

@ -15,7 +15,6 @@
<br>
<p>🔥 <b>Xiaohongshu Link Extraction/Content Collection Tool</b>Extract account-published, favorited, and liked content links; extract search result content links and user links; collect Xiaohongshu content information; extract Xiaohongshu content download addresses; download Xiaohongshu watermark-free content files!</p>
<p><strong>⚠️ 2024/9/24: Due to rule updates on Xiaohongshu, there is a risk of account suspension for user scripts with version numbers lower than <code>1.7.1</code> Please update the user scripts in a timely manner before using them!</strong></p>
<p><strong>⚠️ 2024/10/13: Due to the date information carried in the links of Xiaohongshu works, using links obtained from previous dates may be subject to risk control. It is recommended to use the latest Xiaohongshu works links when downloading Xiaohongshu work files!</strong></p>
<p>⭐ This project is completely free and open-source, with no paid features. Please do not be deceived!</p>
<p>⭐ Due to the author's limited energy, I was unable to update the English document in a timely manner, and the content may have become outdated, partial translation is machine translation, the translation result may be incorrect, Suggest referring to Chinese documentation. If you want to contribute to translation, we warmly welcome you.</p>
<h1>📑 Project Features</h1>
@ -166,6 +165,11 @@ def api_demo():
response = requests.post(server, json=data)
print(response.json())
</pre>
<h1>⚠️ Others</h1>
<ul>
<li>Due to the date information carried in the links of Xiaohongshu works, using links obtained from previous dates may be subject to risk control. It is recommended to use the latest Xiaohongshu works links when downloading Xiaohongshu work files</li>
<li>Windows system requires running programs as an administrator to read Chromium, Chrome, Edge browser cookies</li>
</ul>
<h1>🕹 User Script</h1>
<p>If your browser has the <a href="https://www.tampermonkey.net/">Tampermonkey</a> browser extension installed, you can add the <a href="https://raw.githubusercontent.com/JoeanAmier/XHS-Downloader/master/static/XHS-Downloader.js">user script</a> to experience the project features without needing to download or install anything!</p>
<img src="static/screenshot/脚本安装教程.png" alt="">

View File

@ -4,7 +4,7 @@ lxml>=5.3.0
PyYAML>=6.0.2
aiosqlite>=0.20.0
click>=8.1.7
rookiepy>=0.5.2
rookiepy>=0.5.5
httpx>=0.27.0
fastapi>=0.112.1
uvicorn>=0.30.6

View File

@ -31,13 +31,14 @@ class BrowserCookie:
"Firefox": (firefox, "Linux, macOS, Windows"),
"LibreWolf": (librewolf, "Linux, macOS, Windows"),
}
TIP = "Windows 系统需要以管理员身份运行程序才能读取 Chromium、Chrome、Edge 浏览器 Cookie"
@classmethod
def run(cls, domains: list[str], console: Console = None, ) -> str:
console = console or Console()
options = "\n".join(f"{i}. {k}: {v[1]}" for i, (k, v) in enumerate(cls.SUPPORT_BROWSER.items(), start=1))
if browser := console.input(
f"读取指定浏览器的 Cookie 并写入配置文件\n{options}\n请输入浏览器名称或序号:", ):
f"读取指定浏览器的 Cookie 并写入配置文件;注意:{cls.TIP}\n{options}\n请输入浏览器名称或序号:", ):
return cls.get(browser, domains, console, )
console.print("未选择浏览器!")

View File

@ -11,11 +11,16 @@
<p><strong>旧版本升级后首次运行请删除配置文件 <code>settings.json</code>,删除后重新运行程序会自动生成新的默认配置文件!</strong></p>
<p><strong>Windows 系统需要以管理员身份运行程序才能读取 Chromium、Chrome、Edge 浏览器 Cookie</strong></p>
<hr>
**用户脚本更新内容:**
1. 重构作品链接提取功能
2. 禁用自动滚动屏幕功能
<hr>
<p><strong>⚠️ 由于小红书规则更新,使用版本号低于 <code>1.7.1</code> 的用户脚本有封号风险,请及时更新用户脚本后再使用!</strong></p>