Skip to main content

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/
Tests PyPI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

album_of_the_year_api-0.2.11.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

album_of_the_year_api-0.2.11-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file album_of_the_year_api-0.2.11.tar.gz.

File metadata

  • Download URL: album_of_the_year_api-0.2.11.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for album_of_the_year_api-0.2.11.tar.gz
Algorithm Hash digest
SHA256 f1613f66ae6e8e2e6b3a3177c0eb1ebd024caa2982b99edfb1de5160f45d444c
MD5 d5d83d8daea441977460ae368f55d4f1
BLAKE2b-256 7ce2d480e7b4a7953cda082741f90d81d92277614f4d99ed7d50115663dc2c65

See more details on using hashes here.

File details

Details for the file album_of_the_year_api-0.2.11-py3-none-any.whl.

File metadata

File hashes

Hashes for album_of_the_year_api-0.2.11-py3-none-any.whl
Algorithm Hash digest
SHA256 4c72039f42d23d7a36a1eff190968db0c420b215d2a5c597d9dc75852331a0e8
MD5 89ff624543cae885cd36aed672726348
BLAKE2b-256 f38eb5e90fb5933d98070cf565c6d4468bcf4f146ecaba4798602ac1a2167a75

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