更新项目代码
10
README.md
@ -38,9 +38,9 @@
|
||||
</ul>
|
||||
<h1>📸 程序截图</h1>
|
||||
<p><b>🎥 点击图片观看演示视频</b></p>
|
||||
<a href="https://www.bilibili.com/video/BV1nQ4y137it/"><img src="static/程序运行截图1.png" alt=""></a>
|
||||
<a href="https://www.bilibili.com/video/BV1nQ4y137it/"><img src="static/screenshot/程序运行截图CN1.png" alt=""></a>
|
||||
<hr>
|
||||
<a href="https://www.bilibili.com/video/BV1nQ4y137it/"><img src="static/程序运行截图2.png" alt=""></a>
|
||||
<a href="https://www.bilibili.com/video/BV1nQ4y137it/"><img src="static/screenshot/程序运行截图CN2.png" alt=""></a>
|
||||
<h1>🔗 支持链接</h1>
|
||||
<ul>
|
||||
<li><code>https://www.xiaohongshu.com/explore/作品ID</code></li>
|
||||
@ -64,7 +64,9 @@
|
||||
<li>运行 <code>main.py</code> 即可使用</li>
|
||||
</ol>
|
||||
<h1>🕹 用户脚本</h1>
|
||||
<img src="static/用户脚本截图.png" alt="">
|
||||
<img src="static/screenshot/用户脚本截图1.png" alt="">
|
||||
<hr>
|
||||
<img src="static/screenshot/用户脚本截图2.png" alt="">
|
||||
<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>
|
||||
<p>提示:使用 XHS-Downloader 用户脚本批量提取作品链接,搭配 XHS-Downloader 程序可以实现批量下载无水印作品文件!</p>
|
||||
<h1>💻 二次开发</h1>
|
||||
@ -201,7 +203,7 @@ async with XHS(work_path=work_path,
|
||||
<li>输出内容即为所需 Cookie</li>
|
||||
</ol>
|
||||
<br>
|
||||
<img src="static/获取Cookie示意图.png" alt="">
|
||||
<img src="static/screenshot/获取Cookie示意图.png" alt="">
|
||||
<h1>♥️ 支持项目</h1>
|
||||
<p>如果 <b>XHS-Downloader</b> 对您有帮助,请考虑为它点个 <b>Star</b> ⭐,感谢您的支持!</p>
|
||||
<table>
|
||||
|
||||
10
README_EN.md
@ -34,9 +34,9 @@
|
||||
<h1>📸 Program Screenshot</h1>
|
||||
<br>
|
||||
<p><b>🎥 Click on the image to watch the demo video</b></p>
|
||||
<a href="https://www.bilibili.com/video/BV1nQ4y137it/"><img src="static/程序运行截图1.png" alt=""></a>
|
||||
<a href="https://www.bilibili.com/video/BV1nQ4y137it/"><img src="static/screenshot/程序运行截图EN1.png" alt=""></a>
|
||||
<hr>
|
||||
<a href="https://www.bilibili.com/video/BV1nQ4y137it/"><img src="static/程序运行截图2.png" alt=""></a>
|
||||
<a href="https://www.bilibili.com/video/BV1nQ4y137it/"><img src="static/screenshot/程序运行截图EN2.png" alt=""></a>
|
||||
<h1>🔗 Support Hyperlinks</h1>
|
||||
<ul>
|
||||
<li><code>https://www.xiaohongshu.com/explore/artwork's ID</code></li>
|
||||
@ -71,7 +71,9 @@
|
||||
<li>Extract artwork links from account-liked content</li>
|
||||
</ul>
|
||||
<h2>Script Screenshot</h2>
|
||||
<img src="static/用户脚本截图.png" alt="">
|
||||
<img src="static/screenshot/用户脚本截图1.png" alt="">
|
||||
<hr>
|
||||
<img src="static/screenshot/用户脚本截图2.png" alt="">
|
||||
<h1>💻 Secondary Development</h1>
|
||||
<p>If there are other requirements, you can call or modify the program refer to the comments in <code>main.py</code></p>
|
||||
<pre>
|
||||
@ -207,7 +209,7 @@ async with XHS(work_path=work_path,
|
||||
<li>The output content is the Cookie</li>
|
||||
</ol>
|
||||
<br>
|
||||
<img src="static/获取Cookie示意图.png" alt="">
|
||||
<img src="static/screenshot/获取Cookie示意图.png" alt="">
|
||||
<h1>♥️ Support the Project</h1>
|
||||
<p>If <b>XHS-Downloader</b> is helpful, please consider giving it a <b>Star</b> ⭐, thank you for your support!</p>
|
||||
<table>
|
||||
|
||||
@ -13,7 +13,6 @@ from source.translator import (
|
||||
English,
|
||||
)
|
||||
from .index import Index
|
||||
from .loading import Loading
|
||||
from .setting import Setting
|
||||
|
||||
__all__ = ["XHSDownloader"]
|
||||
@ -48,7 +47,6 @@ class XHSDownloader(App):
|
||||
self.prompt),
|
||||
name="setting")
|
||||
self.install_screen(Index(self.APP, self.prompt), name="index")
|
||||
self.install_screen(Loading(), name="loading")
|
||||
await self.push_screen("index")
|
||||
|
||||
async def action_settings(self):
|
||||
@ -62,12 +60,14 @@ class XHSDownloader(App):
|
||||
await self.push_screen("index")
|
||||
|
||||
async def refresh_screen(self):
|
||||
await self.push_screen("loading")
|
||||
self.uninstall_screen("setting")
|
||||
self.pop_screen()
|
||||
self.__initialization()
|
||||
self.uninstall_screen("setting")
|
||||
self.install_screen(
|
||||
Setting(
|
||||
self.parameter,
|
||||
self.prompt),
|
||||
name="setting")
|
||||
self.uninstall_screen("index")
|
||||
self.install_screen(Index(self.APP, self.prompt), name="index")
|
||||
await self.push_screen("index")
|
||||
|
||||
@ -83,7 +83,7 @@ class Setting(Screen):
|
||||
yield Footer()
|
||||
|
||||
def on_mount(self) -> None:
|
||||
self.title = "程序设置"
|
||||
self.title = self.prompt.settings_title
|
||||
|
||||
@on(Button.Pressed, "#save")
|
||||
def save_settings(self):
|
||||
|
||||
@ -63,6 +63,7 @@ class Chinese:
|
||||
cookie_placeholder: str = "内置 Cookie,建议自行设置"
|
||||
proxy_placeholder: str = "无代理"
|
||||
|
||||
settings_title: str = "程序设置"
|
||||
save_button: str = "保存配置"
|
||||
abandon_button: str = "放弃更改"
|
||||
|
||||
|
||||
@ -60,7 +60,7 @@ class English(Chinese):
|
||||
exit_program: str = "Exit the program"
|
||||
check_updates: str = "Check for updates"
|
||||
get_script: str = "Get the script"
|
||||
choose_language: str = "Select language"
|
||||
settings: str = "Settings"
|
||||
|
||||
work_path: str = "Work path:"
|
||||
folder_name: str = "Folder name:"
|
||||
@ -81,6 +81,7 @@ class English(Chinese):
|
||||
cookie_placeholder: str = "built-in cookie, it is recommended to set it manually"
|
||||
proxy_placeholder: str = "No proxy"
|
||||
|
||||
settings_title: str = "Settings"
|
||||
save_button: str = "Save configuration"
|
||||
abandon_button: str = "Discard changes"
|
||||
|
||||
|
||||
BIN
static/screenshot/用户脚本截图1.png
Normal file
|
After Width: | Height: | Size: 100 KiB |
BIN
static/screenshot/用户脚本截图2.png
Normal file
|
After Width: | Height: | Size: 84 KiB |
BIN
static/screenshot/程序运行截图CN1.png
Normal file
|
After Width: | Height: | Size: 149 KiB |
BIN
static/screenshot/程序运行截图CN2.png
Normal file
|
After Width: | Height: | Size: 78 KiB |
BIN
static/screenshot/程序运行截图EN1.png
Normal file
|
After Width: | Height: | Size: 129 KiB |
BIN
static/screenshot/程序运行截图EN2.png
Normal file
|
After Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 147 KiB |
|
Before Width: | Height: | Size: 77 KiB |