mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2026-03-22 06:57:16 +08:00
新增 Tampermonkey 用户脚本
This commit is contained in:
15
README.md
15
README.md
@@ -1,11 +1,14 @@
|
|||||||
<div align="center">
|
<div align="center">
|
||||||
<img src="static/XHS-Downloader.png" alt="" height="256" width="256"><br>
|
<img src="static/XHS-Downloader.png" alt="" height="256" width="256"><br>
|
||||||
<h1>XHS-Downloader</h1>
|
<h1>XHS-Downloader</h1>
|
||||||
<img alt="GitHub" src="https://img.shields.io/github/license/JoeanAmier/XHS-Downloader?style=for-the-badge">
|
<img alt="GitHub" src="https://img.shields.io/github/license/JoeanAmier/XHS-Downloader?style=for-the-badge&color=ff7a45">
|
||||||
<img alt="GitHub forks" src="https://img.shields.io/github/forks/JoeanAmier/XHS-Downloader?style=for-the-badge&color=c56cf0">
|
<img alt="GitHub forks" src="https://img.shields.io/github/forks/JoeanAmier/XHS-Downloader?style=for-the-badge&color=9254de">
|
||||||
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/JoeanAmier/XHS-Downloader?style=for-the-badge&color=fff200">
|
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/JoeanAmier/XHS-Downloader?style=for-the-badge&color=ff7875">
|
||||||
<img alt="GitHub all releases" src="https://img.shields.io/github/downloads/JoeanAmier/XHS-Downloader/total?style=for-the-badge&color=1b9cfc">
|
<img alt="Static Badge" src="https://img.shields.io/badge/UserScript-ffec3d?style=for-the-badge&logo=tampermonkey&logoColor=%2300485B">
|
||||||
<img alt="GitHub release (with filter)" src="https://img.shields.io/github/v/release/JoeanAmier/XHS-Downloader?style=for-the-badge&color=44bd32">
|
<br>
|
||||||
|
<img alt="GitHub code size in bytes" src="https://img.shields.io/github/languages/code-size/JoeanAmier/XHS-Downloader?style=for-the-badge&color=73d13d">
|
||||||
|
<img alt="GitHub release (with filter)" src="https://img.shields.io/github/v/release/JoeanAmier/XHS-Downloader?style=for-the-badge&color=40a9ff">
|
||||||
|
<img alt="GitHub all releases" src="https://img.shields.io/github/downloads/JoeanAmier/XHS-Downloader/total?style=for-the-badge&color=f759ab">
|
||||||
<p>🔥 <b>小红书作品采集工具</b>:采集小红书作品信息;提取小红书作品下载地址;下载小红书无水印作品文件!</p>
|
<p>🔥 <b>小红书作品采集工具</b>:采集小红书作品信息;提取小红书作品下载地址;下载小红书无水印作品文件!</p>
|
||||||
</div>
|
</div>
|
||||||
<h1>📑 功能清单</h1>
|
<h1>📑 功能清单</h1>
|
||||||
@@ -184,6 +187,8 @@ async with XHS(path=path,
|
|||||||
</ol>
|
</ol>
|
||||||
<br>
|
<br>
|
||||||
<img src="static/获取Cookie示意图.png" alt="">
|
<img src="static/获取Cookie示意图.png" alt="">
|
||||||
|
<h1>🕹 用户脚本</h1>
|
||||||
|
<p>如果您的浏览器安装了 Tampermonkey 浏览器扩展程序,可以 <a href="https://github.com/JoeanAmier/XHS-Downloader/blob/master/static/XHS-Downloader.js">点击安装</a> 用户脚本,无需下载即可体验!</p>
|
||||||
<h1>♥️ 支持项目</h1>
|
<h1>♥️ 支持项目</h1>
|
||||||
<p>如果 <b>XHS-Downloader</b> 对您有帮助,请考虑为它点个 <b>Star</b> ⭐,感谢您的支持!</p>
|
<p>如果 <b>XHS-Downloader</b> 对您有帮助,请考虑为它点个 <b>Star</b> ⭐,感谢您的支持!</p>
|
||||||
<table>
|
<table>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from aiohttp import ClientOSError
|
from aiohttp import ClientOSError
|
||||||
|
from aiohttp import ClientPayloadError
|
||||||
from aiohttp import ClientSession
|
from aiohttp import ClientSession
|
||||||
from aiohttp import ClientTimeout
|
from aiohttp import ClientTimeout
|
||||||
from aiohttp import ServerDisconnectedError
|
from aiohttp import ServerDisconnectedError
|
||||||
@@ -71,6 +72,7 @@ class Download:
|
|||||||
ServerTimeoutError,
|
ServerTimeoutError,
|
||||||
ServerDisconnectedError,
|
ServerDisconnectedError,
|
||||||
ClientOSError,
|
ClientOSError,
|
||||||
|
ClientPayloadError,
|
||||||
):
|
):
|
||||||
self.manager.delete(temp)
|
self.manager.delete(temp)
|
||||||
# self.__create_progress(bar, None)
|
# self.__create_progress(bar, None)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
from aiohttp import ClientOSError
|
from aiohttp import ClientOSError
|
||||||
|
from aiohttp import ClientPayloadError
|
||||||
from aiohttp import ClientSession
|
from aiohttp import ClientSession
|
||||||
from aiohttp import ClientTimeout
|
from aiohttp import ClientTimeout
|
||||||
from aiohttp import ServerDisconnectedError
|
from aiohttp import ServerDisconnectedError
|
||||||
@@ -45,6 +46,7 @@ class Html:
|
|||||||
ServerTimeoutError,
|
ServerTimeoutError,
|
||||||
ServerDisconnectedError,
|
ServerDisconnectedError,
|
||||||
ClientOSError,
|
ClientOSError,
|
||||||
|
ClientPayloadError,
|
||||||
):
|
):
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|||||||
282
static/XHS-Downloader.js
Normal file
282
static/XHS-Downloader.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user