Skip to main content

A module for retrieving data from artfight.net

Project description

Artfight Api

A module for retrieving data from artfight.net.

Powered by 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.

Quickstart

Install the module:

pip install artfight-api

Fetch all attacks by a user:

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())

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

artfight_api-0.1.1.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

artfight_api-0.1.1-py3-none-any.whl (12.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page