A light weight Python library that acts as an API for the website albumoftheyear.org
Project description
AlbumOfTheYearWrapper
A light weight python library that acts as an API for https://www.albumoftheyear.org/
Description
Gets data from https://www.albumoftheyear.org/. The website doesn't currently provide API support so web parsing is required to obtain data. Because of this, and according to https://www.albumoftheyear.org/robots.txt, searching and POST requests are not allowed.
Installation
pip install album-of-the-year-api
or upgrade
pip install album-of-the-year-api --upgrade
Usage
Examples
Here's a quick example of getting a specific users follower count
from albumoftheyearapi import AOTY
client = AOTY()
print(client.user_follower_count('jahsias'))
>> 0
If you don't need the full functionality, you can also import only the neccesary files
from albumoftheyearapi.artist import ArtistMethods
client = ArtistMethods()
print(client.artist_albums('183-kanye-west'))
>> ['Donda 2', 'Donda', 'JESUS IS KING', 'ye', 'The Life of Pablo', 'Yeezus', 'Watch the Throne', 'My Beautiful Dark Twisted Fantasy', '808s & Heartbreak', 'Graduation', 'Late Registration', 'The College Dropout']
Notice artists also need their unique id along with their name
Each function also is able to return the data in JSON format
from albumoftheyearapi import AOTY
client = AOTY()
print(client.artist_critic_score_json('183-kanye-west'))
>> {"critic_score": "73"}
For detailed information, refer to the Full API Documentation.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file album_of_the_year_api-0.2.12.tar.gz.
File metadata
- Download URL: album_of_the_year_api-0.2.12.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4d5b592c118466b6d1e2b1116cef6e517e2fd21aec5445fff49776fa263d7ce
|
|
| MD5 |
0fc2524d91d90fef538dfa9e7fff3b72
|
|
| BLAKE2b-256 |
a9f4bb46b8c91f4588de45ae6bfa9c6a2b7a717142d4888ffd50bc87a27f53ed
|
File details
Details for the file album_of_the_year_api-0.2.12-py3-none-any.whl.
File metadata
- Download URL: album_of_the_year_api-0.2.12-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cd2572ea2425b1b440e8150a191f1faa1b1d4e1601094ecbe41f00302f7c4ca
|
|
| MD5 |
ebeb82dcb15ec3675d18308f996c1a31
|
|
| BLAKE2b-256 |
9d7e06f01f9e5542a7453905640744bb4414916863ecebd65aacb6605af5e8bd
|