# ASMR-Spider
本项目改编自 [DiheChen/go-asmr-spider](https://github.com/DiheChen/go-asmr-spider/tree/python)
<div>
<a href="./LICENSE">
<img src="https://img.shields.io/github/license/tkgs0/asmr-spider.svg" alt="License">
</a>
<a href="https://pypi.python.org/pypi/asmr-spider">
<img src="https://img.shields.io/pypi/v/asmr-spider.svg" alt="PyPI">
</a>
<a href="https://www.python.org">
<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="Python">
</a>
</div>
一个简单的 [ASMR](https://asmr.one) 爬虫
## TODO
- [ ] 多线程下载
- [ ] 下载自动分类
## 使用
### 音频体积对比模式
支持断点续传
### 音频时长分析模式
不使用 `ffmpeg` 和 `ffprobe` 时仅支持 `mp3` `wav` `flac` 格式的音频分析
- [ffmpeg Documentation](https://www.ffmpeg.org/)
- [ffprobe Documentation](https://www.ffmpeg.org/ffprobe.html)
### 已知问题
- 未安装 **ffmpeg** 时可能会报缺少 **libsndfile** 等运行库, 需要另外安装相关依赖.
<details>
<summary>Install ffmpeg or libsndfile</summary>
<br />
<details>
<summary>Debian/Ubuntu安装</summary>
```zsh
apt update && apt install ffmpeg
```
**或者**:
```zsh
apt update && apt install libsndfile1
```
</details>
<details>
<summary>ArchLinux安装</summary>
```zsh
pacman -Syu ffmpeg
```
**或者**:
```zsh
pacman -Syu libsndfile
```
</details>
<details>
<summary>Mac安装</summary>
```zsh
brew install ffmpeg
```
</details>
<details>
<summary>Windows安装</summary>
请参考 [ffmpeg Documentation](https://www.ffmpeg.org/) 自行解决
</details>
</details>
### Install
```bash
pip install -U asmr-spider
```
### Run
```bash
#直接下载, 默认检查重复
asmr RJ373001 RJ385913
#或者
asmr RJ373001 RJ385913 -a checksize
# `asmr` 后面接RJ号, 可输入多个, 使用空格隔开
#通过时长检测重复内容,目前不支持断点续传
asmr RJ373001 RJ385913 -a checktime
#禁用检查, 跳过已存在的文件
asmr RJ373001 RJ385913 -a nocheck
#强制重新下载所有文件
asmr RJ373001 RJ385913 -a redown
```
配置文件 `asmr_spider.yml` 保存在命令执行时所在的路径
<details>
<summary>Import</summary>
```python3
from asmr_spider import dload
async def demo():
args = ['RJ373001', 'RJ385913']
action = 'checksize' # 'checksize', 'checktime','redown', 'nocheck'
await dload(args, action)
```
</details>
## 致谢
- 感谢 [地河酱](https://github.com/DiheChen), 地河酱yyds🤗
- 感谢 [Kotobasutop](https://github.com/c2879351010) 对 ASMR-Spider 作出的贡献
- 感谢 asmr.one, 现在每天都有不同的女孩子陪我睡觉。
Raw data
{
"_id": null,
"home_page": "https://github.com/tkgs0/asmr-spider",
"name": "asmr-spider",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "ASMR, ASMR Downloader",
"author": "\u6708\u30f6\u702c",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/33/6f/da4c82bc196508b193d2a4a21e5c6a2339286b8859a419073f457f79412e/asmr_spider-0.3.5.tar.gz",
"platform": null,
"description": "# ASMR-Spider\n\n\u672c\u9879\u76ee\u6539\u7f16\u81ea [DiheChen/go-asmr-spider](https://github.com/DiheChen/go-asmr-spider/tree/python)\n\n<div>\n\n<a href=\"./LICENSE\">\n <img src=\"https://img.shields.io/github/license/tkgs0/asmr-spider.svg\" alt=\"License\">\n</a>\n<a href=\"https://pypi.python.org/pypi/asmr-spider\">\n <img src=\"https://img.shields.io/pypi/v/asmr-spider.svg\" alt=\"PyPI\">\n</a>\n<a href=\"https://www.python.org\">\n <img src=\"https://img.shields.io/badge/python-3.9+-blue.svg\" alt=\"Python\">\n</a>\n\n</div>\n\n\u4e00\u4e2a\u7b80\u5355\u7684 [ASMR](https://asmr.one) \u722c\u866b\n\n\n## TODO\n\n- [ ] \u591a\u7ebf\u7a0b\u4e0b\u8f7d\n- [ ] \u4e0b\u8f7d\u81ea\u52a8\u5206\u7c7b\n\n\n## \u4f7f\u7528\n\n### \u97f3\u9891\u4f53\u79ef\u5bf9\u6bd4\u6a21\u5f0f\n\n\u652f\u6301\u65ad\u70b9\u7eed\u4f20\n\n### \u97f3\u9891\u65f6\u957f\u5206\u6790\u6a21\u5f0f\n\n\u4e0d\u4f7f\u7528 `ffmpeg` \u548c `ffprobe` \u65f6\u4ec5\u652f\u6301 `mp3` `wav` `flac` \u683c\u5f0f\u7684\u97f3\u9891\u5206\u6790\n\n- [ffmpeg Documentation](https://www.ffmpeg.org/)\n- [ffprobe Documentation](https://www.ffmpeg.org/ffprobe.html)\n\n\n### \u5df2\u77e5\u95ee\u9898\n\n- \u672a\u5b89\u88c5 **ffmpeg** \u65f6\u53ef\u80fd\u4f1a\u62a5\u7f3a\u5c11 **libsndfile** \u7b49\u8fd0\u884c\u5e93, \u9700\u8981\u53e6\u5916\u5b89\u88c5\u76f8\u5173\u4f9d\u8d56.\n\n<details>\n <summary>Install ffmpeg or libsndfile</summary>\n <br />\n <details>\n <summary>Debian/Ubuntu\u5b89\u88c5</summary>\n\n ```zsh\n apt update && apt install ffmpeg\n ```\n **\u6216\u8005**:\n ```zsh\n apt update && apt install libsndfile1\n ```\n\n </details>\n <details>\n <summary>ArchLinux\u5b89\u88c5</summary>\n\n ```zsh\n pacman -Syu ffmpeg\n ```\n **\u6216\u8005**:\n ```zsh\n pacman -Syu libsndfile\n ```\n\n </details>\n <details>\n <summary>Mac\u5b89\u88c5</summary>\n\n ```zsh\n brew install ffmpeg\n ```\n\n </details>\n <details>\n <summary>Windows\u5b89\u88c5</summary>\n\n \u8bf7\u53c2\u8003 [ffmpeg Documentation](https://www.ffmpeg.org/) \u81ea\u884c\u89e3\u51b3\n\n </details>\n</details>\n\n\n### Install\n\n```bash\npip install -U asmr-spider\n```\n\n\n### Run\n\n```bash\n#\u76f4\u63a5\u4e0b\u8f7d, \u9ed8\u8ba4\u68c0\u67e5\u91cd\u590d\nasmr RJ373001 RJ385913\n#\u6216\u8005\nasmr RJ373001 RJ385913 -a checksize\n# `asmr` \u540e\u9762\u63a5RJ\u53f7, \u53ef\u8f93\u5165\u591a\u4e2a, \u4f7f\u7528\u7a7a\u683c\u9694\u5f00\n\n#\u901a\u8fc7\u65f6\u957f\u68c0\u6d4b\u91cd\u590d\u5185\u5bb9,\u76ee\u524d\u4e0d\u652f\u6301\u65ad\u70b9\u7eed\u4f20\nasmr RJ373001 RJ385913 -a checktime\n\n#\u7981\u7528\u68c0\u67e5, \u8df3\u8fc7\u5df2\u5b58\u5728\u7684\u6587\u4ef6\nasmr RJ373001 RJ385913 -a nocheck\n\n#\u5f3a\u5236\u91cd\u65b0\u4e0b\u8f7d\u6240\u6709\u6587\u4ef6\nasmr RJ373001 RJ385913 -a redown\n```\n\n\u914d\u7f6e\u6587\u4ef6 `asmr_spider.yml` \u4fdd\u5b58\u5728\u547d\u4ee4\u6267\u884c\u65f6\u6240\u5728\u7684\u8def\u5f84\n\n<details>\n <summary>Import</summary>\n\n```python3\nfrom asmr_spider import dload\n\nasync def demo():\n args = ['RJ373001', 'RJ385913']\n action = 'checksize' # 'checksize', 'checktime','redown', 'nocheck'\n await dload(args, action)\n```\n\n</details>\n\n## \u81f4\u8c22\n\n- \u611f\u8c22 [\u5730\u6cb3\u9171](https://github.com/DiheChen), \u5730\u6cb3\u9171yyds\ud83e\udd17\n- \u611f\u8c22 [Kotobasutop](https://github.com/c2879351010) \u5bf9 ASMR-Spider \u4f5c\u51fa\u7684\u8d21\u732e\n- \u611f\u8c22 asmr.one, \u73b0\u5728\u6bcf\u5929\u90fd\u6709\u4e0d\u540c\u7684\u5973\u5b69\u5b50\u966a\u6211\u7761\u89c9\u3002\n\n",
"bugtrack_url": null,
"license": "GPL-3.0",
"summary": "asmr.one \u97f3\u58f0\u4e0b\u8f7d\u5668",
"version": "0.3.5",
"project_urls": {
"Homepage": "https://github.com/tkgs0/asmr-spider",
"Repository": "https://github.com/tkgs0/asmr-spider"
},
"split_keywords": [
"asmr",
" asmr downloader"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0032113200c9e5e873b98736e959054cc45fdbde1827458b4df3c740be7336db",
"md5": "05281a49cd859f7b6d9a99bbf91a32fd",
"sha256": "0961e90ea06ecbf7989de36ca1fc6c3bf7f30a653024e34425981d1c49424e76"
},
"downloads": -1,
"filename": "asmr_spider-0.3.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "05281a49cd859f7b6d9a99bbf91a32fd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 20305,
"upload_time": "2024-09-10T05:14:01",
"upload_time_iso_8601": "2024-09-10T05:14:01.286057Z",
"url": "https://files.pythonhosted.org/packages/00/32/113200c9e5e873b98736e959054cc45fdbde1827458b4df3c740be7336db/asmr_spider-0.3.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "336fda4c82bc196508b193d2a4a21e5c6a2339286b8859a419073f457f79412e",
"md5": "72487fcb6bbda19a235318ab78210de8",
"sha256": "5e9c9e7e314bdf2102699ace06e4e81c4c3003af74f26a8d13afa2bd50c7ddc0"
},
"downloads": -1,
"filename": "asmr_spider-0.3.5.tar.gz",
"has_sig": false,
"md5_digest": "72487fcb6bbda19a235318ab78210de8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 18855,
"upload_time": "2024-09-10T05:14:02",
"upload_time_iso_8601": "2024-09-10T05:14:02.609116Z",
"url": "https://files.pythonhosted.org/packages/33/6f/da4c82bc196508b193d2a4a21e5c6a2339286b8859a419073f457f79412e/asmr_spider-0.3.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-10 05:14:02",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tkgs0",
"github_project": "asmr-spider",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "asmr-spider"
}