mcocscraper 0.0.1
A Python Package made for accessing MCOC Data through auntm.ai
Requires Python: >=3.6

# mcocscraper
## A Python Library for accessing MCOC Champs data
---------


>Note:This is my first python library, so there >may be some errors. Please report it in my >Github Issues/Discord Server if you find some.

This library is specifically made for MCOC Fams. It scrapes the data from [AUNTM.AI](https://auntm.ai/) website and it allows you to get various specifications about champs listed in the site.

(Well you can achieve the same using requests-html package but I wanted to make a way that can be more easily accessed.)

## Install

To Install mcocscraper, Just do the following command in terminal

`pip install mcocscraper`

## _Examples_

- Get the HP and Attack of 6 Star Abomination
```
from mcocscraper import champs
info = champs()
info.champs_info("abomination", 6)
print(info.hp)
print(info.attack)
```
Result-
```
>6 Star
>3859
```
# _Parameters_
## `champs.info()`
The paramters that can be passed as in above case in `champs.info()` are as follows-
(champname, tier)

## champname
The `champname` can only contain the name present in the link. For ex. If you need information for [Immortal Abomination](https://auntm.ai/champions/abomination_immortal/tier/6) , then the `champname` will be **`abomination_immortal`** as seen in the link address(after `champions/` and before `/tier`)- "https://auntm.ai/champions/abomination_immortal/tier/6"

## tier
The tiers are the no. of stars of the champions, As of now- The following paramaters can be passed-
`2`,`3`,`4`,`5`,`6`

(Note-Some champs don't have tier more than 4)

------------------------------------------------------
## info
The information that can be is-

| Parameter | Information |
| ------ | ------ |
| .tier | Get the tier of The champion(eg. 6 STAR) |
| .rank | Get the rank of the champion(eg. 4) |
| .prestige | Get the prestige of the champion |
| .hp | Get the total health of the champion|
| .attack | Total Attack of the champion |
| .crit_rate | Get the crit rate of the champion|
| .crit_dmge | Get the crit damage of the champion|
| .armor | get the armor rating of the champion |
| .block_prof | Get the block proficiency of the champion |
| .energy_resist | Get the energy resistance rating of the champion |
| .physical_resist | Get the physical resistance rating of the champion |
| .crit_resist | Get the crit resistance rating of the champion |
| .sig_info | Get signature info of the champion at base 0 |
| .url_page | Get the link to the auntm.ai for the specific champion(for ex, - [Abomination](https://auntm.ai/champions/abomination/tier/6)) |
| .img_potrait | Get the link to the image for the specific champion(for ex. [Aegon](https://auntm.ai/resources/ui/uigacha/featured/gachachaseprize_256x256_aegon.png)) |

For ex. To access `.img_potrait`-

```
from mcocscraper import champs
info = champs()
info.champs_info("drax", 6)
print(info.img_potrait)
```
Result-
```
>https://auntm.ai/resources/ui/uigacha/featured/gachachaseprize_256x256_drax.png
```

# Future Plan
I will try to make it in this way, so that you could change the signature of the champion and also get the syngergies available.

## Contact me
- [Github](https://github.com/Indominus-Rexian)
- [Discord](https://discord.gg/8aVsCk5dH2)
- [Email](indo.rexian@gmail.com)