# Anime Character API
An unofficial API to get data about anime characters, anime news and more.
The API scrapes [myanimelist](https://myanimelist.net/) to get data about anime characters and anime news.
Currently, the API is very basic, but I will be adding a lot of stuff to easily extract data.
If you wish to see a feature, please raise an [issue](https://github.com/DriftAsimov/animec). We will surely work on it.
You can also join our [Discord](https://discord.gg/x3qAZV3) to get regular updates about the API.
## Installation and Usage
To install the library:
```python
pip install animec
```
To import the library:
```python
import animec
# OR
from animec import *
```
## Examples
### Extracting an anime character's data
```python
from animec import *
result = charsearch("okabe rintarou")
print(result.title, result.url, result.image_url, sep="\n")
'''
Output: (As retrieved from myanimelist)
Rintarou Okabe (岡部 倫太郎)
https://myanimelist.net/character/35252/Rintarou_Okabe
https://cdn.myanimelist.net/images/characters/6/122643.jpg
'''
```
### Requesting anime news
```python
from animec import *
news = aninews(3) #default value is 2
print(news.news) #returns a dictionary with news titles as keys and values as links
print(news.titles) #returns news titles
print(news.links) #returns news links
print(news.descripion) #returns news description
```
## API Documentation
List of properties and methods currently supported by animec.
Official documentation coming soon!
```
charsearch()
----- .title
----- .url
----- .image_url
aninews()
----- .news
----- .titles
----- .links
----- .description
```
## Credits
```
Author: DriftAsimov
GitHub: https://github.com/DriftAsimov
Language Used: Python
```
## Contact Us
```
Mail: [email protected]
Discord: Drift Asimov#3338 | https://discord.gg/x3qAZV3
```
> Note: I do not own myanimelist or any imported module or api. I have just used them to extract the data.
PyPI 官网下载 | animec-0.0.6b0.tar.gz
版权申诉
179 浏览量
2022-01-31
07:10:52
上传
评论
收藏 4KB GZ 举报
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
最新资源
- 蓝zapro.apk
- chromedriver-linux64.zip
- 基于Python和PyTorch框架完成的一个手写数字识别实验源码(带MINIST手写数字数据集)+详细注释(高分项目)
- 基于Matlab在MNIST数据集上利用CNN完成手写体数字识别任务,并实现单层CNN反向传播算法+源代码+文档说明(高分项目)
- NVIDIA驱动、CUDA和Pytorch及其依赖
- html动态爱心代码一(附源码)
- c40539bc-071a-486c-9d52-9d0c18d62dac 4.html
- 基于物理的非视域成像(NLOS)算法,利用了nerf+python源码+文档说明
- yuluer知更鸟.7z(1).001
- python课程设计-基于tensorflow实现的图文生成程序,数据集flickr30k-images+源代码+文档说明+截图
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈