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.2.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

artfight_api-0.1.2-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file artfight_api-0.1.2.tar.gz.

File metadata

  • Download URL: artfight_api-0.1.2.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for artfight_api-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9aee596b71a7acd81900edd147c52b5ee8b0e539dce6f9d4ec6459636c83873d
MD5 ec444f952edb05c23330b6a0a6539888
BLAKE2b-256 03d9ba5b551018755775725e96b676fe2a481301ba75802289679f4e519ed70e

See more details on using hashes here.

File details

Details for the file artfight_api-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: artfight_api-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for artfight_api-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 25c4b48ece80e554ed1bfb2f5e6975df4abbe586db1030352d83f0dc1523cdb3
MD5 1f02b3f8b78f3f637726cd9ccd67e0eb
BLAKE2b-256 0fecc60d14dacfb7226d5e36b3d827cea6b5ff4356913dedfae2608e67ebc96a

See more details on using hashes here.

Supported by

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