A spider for https://dimtown.com
Project description
dimtown-spider
⭐基于httpx
的为次元小镇的异步爬虫⭐
⭐ 介绍
- 本项目采用
Apache License 2.0
开源协议。在使用这个项目之前,请确保你已经仔细阅读并理解了协议的相关条款。本项目严禁用于任何商业用途,并且只能用于学习和研究。如果在使用本项目的过程中产生任何问题或结果,我们不承担任何责任。同时,我们鼓励用户为这个项目的改进和发展提供反馈和建议。
🦈 安装
安装
pip 安装
pip install dimtown-spider -U
poetry 安装
poetry add dimtown-spider
🐟 使用
可见以下示例:
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)
🐖 注意事项
- 别爬太多
- 适度使用
- 健康生活
鸣谢
httpx ->一款同步异步兼容的网络请求库
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dimtown_spider-0.0.6.tar.gz
(10.7 kB
view hashes)
Built Distribution
Close
Hashes for dimtown_spider-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5876440181a6b1f928b3eb20be5f34e717f3a741763a9a0c15298bff010c3765 |
|
MD5 | 6c14b93c580791eb49c47afe3b8c6772 |
|
BLAKE2b-256 | 5de5e333394a603c8361b69bda8af0c076e85fc37eb5ac7e10dc652df71365fa |