Metadata-Version: 2.1
Name: dimtown-spider
Version: 0.0.3
Summary: A spider for https://dimtown.com
Author: divandia
Author-email: 106718176+Cvandia@users.noreply.github.com
Requires-Python: >=3.9
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: httpx (>=0.23.0)
Requires-Dist: ujson (>=5.4.0)
Description-Content-Type: text/markdown

<div align="center">

<a href="https://dimtown.com"><img src="./ico/ico.png" width="180" alt="Logo"></a>

</div>

<div align="center">

# dimtown-spider

_⭐基于`httpx`的为[次元小镇](https://dimtown.com)的异步爬虫⭐_

</div>

<div align="center">
<a href="https://www.python.org/downloads/release/python-390/"><img src="https://img.shields.io/badge/python-3.9+-blue"></a>  <a href=""><img src="https://img.shields.io/badge/QQ-1141538825-yellow"></a> <a href="https://github.com/Cvandia/dimtown-spider/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache License 2.0-blue"></a> <a href="https://pypi.org/project/httpx/"><img src="https://img.shields.io/badge/httpx-0.23+-gree"></a>
</div>

## ⭐ 介绍

- 本项目采用 `Apache License 2.0` 开源协议。在使用这个项目之前，请确保你已经**仔细阅读并理解了协议的相关条款**。本项目**严禁**用于任何**商业用途**，并且只能用于学习和研究。如果在使用本项目的过程中产生任何问题或结果，**我们不承担任何责任**。同时，我们鼓励用户为这个项目的改进和发展提供反馈和建议。

## 🦈 安装

<details>
<summary>安装</summary>
 
 pip 安装

 `pip install dimtown-spider -U`
 
 poetry 安装

 `poetry add dimtown-spider`

</details>

## 🐟 使用

> 可见以下示例：

```python
import asyncio
from dimtown import AnimeAvatar

if __name__ == "__main__":
    aa = AnimeAvatar()
    loop = asyncio.get_event_loop()
    # 获取url列表
    list_ = loop.run_until_complete(aa.get_animeavatar_list())
    # 获取title列表
    title_list = loop.run_until_complete(aa.get_animeavatar_title())
    print(title_list)
    # 获取url列表下所有图片
    pic_list = loop.run_until_complete(aa.get_animeavatar_img(list_[0]))
    print(pic_list)

```

## 🐖 注意事项
 - [x] 别爬太多
 - [x] 适度使用
 - [x] 健康生活

 ## 鸣谢

 > [httpx](https://pypi.org/project/httpx) ->一款同步异步兼容的网络请求库

