A spider for https://dimtown.com
Project description
dimtown-spider
⭐基于httpx
的为次元小镇的异步爬虫⭐
⭐ 介绍
- 本项目采用
Apache License 2.0
开源协议。在使用这个项目之前,请确保你已经仔细阅读并理解了协议的相关条款。本项目严禁用于任何商业用途,并且只能用于学习和研究。如果在使用本项目的过程中产生任何问题或结果,我们不承担任何责任。同时,我们鼓励用户为这个项目的改进和发展提供反馈和建议。
🐟 使用
可见以下示例:
import asyncio
from dimtown_spider 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.2.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for dimtown_spider-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf7a4c83c4b209bb1c85e06c7832d9f42a8c6694a809df0fff5b6a1990472f1a |
|
MD5 | 48f13f1b4007ac297020dc51fc5bf03c |
|
BLAKE2b-256 | b839ea5b620131938dc02da8738630abfbaa3ce1523f5b191eed66d830c1e462 |