Metadata-Version: 2.1
Name: artfight-api
Version: 0.1.1
Summary: A module for retrieving data from artfight.net
Home-page: https://github.com/NimajnebEC/artfight-api
License: MIT
Author: NimajnebEC
Author-email: nimajnebec@users.noreply.github.com
Requires-Python: >=3.8.1,<4.0.0
Classifier: License :: OSI Approved :: MIT License
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: aiohttp[speedups] (>=3.8.4,<4.0.0)
Requires-Dist: beautifulsoup4 (>=4.12.2,<5.0.0)
Project-URL: Repository, https://github.com/NimajnebEC/artfight-api
Description-Content-Type: text/markdown

# Artfight Api

A module for retrieving data from [artfight.net](https://artfight.net/).

Powered by [beautifulsoup4](https://pypi.org/project/beautifulsoup4/) Artfight Api scrapes the normal frontend to retrieve data from Artfight. As a result any changes to the UI are likely to break this module. If you encounter any errors please be sure to report them to the repository's [GitHub issues page](https://github.com/NimajnebEC/artfight-api/issues/new).

## Quickstart

Install the module:

```
pip install artfight-api
```

Fetch all attacks by a user:

```py
import asyncio

from artfight import ArtfightClient


async def main():
    async with ArtfightClient("USERNAME", "PASSWORD") as client:
        async for attack in client.get_user("Takaia").fetch_attacks():
            fetched = await attack.fetch()
            print(fetched.title)


asyncio.run(main())
```

