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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file artfight_api-0.1.1.tar.gz
.
File metadata
- Download URL: artfight_api-0.1.1.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4e70cd48cdd9a51af4fcc62829b23f09adc02a5585402c2453f59f3eab9c288 |
|
MD5 | 48aaf200244cd216f4237a4d2a6e2079 |
|
BLAKE2b-256 | b07dd58866aa164c014ecc3a9dfbe6a3c4d41e8a2c05848c84deac02e5f5c5e9 |
File details
Details for the file artfight_api-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: artfight_api-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa0567d659f40c87d71523916ce92990af9755d9396e5e8f2ec9e4af61008716 |
|
MD5 | 43d6c9b50c903b170e79b14699296cca |
|
BLAKE2b-256 | 550c11a80c50175149e37c9160be18e3d6e4644f64c8d919ac60d1f2712ec161 |