GithubHelp home page GithubHelp logo

bay-max416 / apple-music-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mpalazzolo/apple-music-python

0.0 0.0 0.0 45 KB

A python wrapper for the Apple Music API

License: MIT License

Python 100.00%

apple-music-python's Introduction

apple-music-python

A python wrapper for the Apple Music API.

See the Apple Music API documentation for additional info.

NOTE: This does not support library resources.

Getting Started

Documentation

Find full documentation of the project here: https://apple-music-python.readthedocs.io

Prerequisites

You must have an Apple Developer Account and a MusicKit API Key. See instructions on how to obtain these here: Getting Keys And Creating Tokens.

Dependencies

Installing

python setup.py install

or

pip install apple-music-python

Example

import applemusicpy

secret_key = 'x'
key_id = 'y'
team_id = 'z'

am = applemusicpy.AppleMusic(secret_key=secret_key, key_id=key_id, team_id=team_id)
results = am.search('travis scott', types=['albums'], limit=5)
for item in results['results']['albums']['data']:
    print(item['attributes']['name'])

Versioning

  • v1.0.0 - Initial Release - 12/15/2018
  • v1.0.1 - Updated package info on PyPI - 12/16/2018
  • v1.0.2 - Added Windows search support - 01/21/2019
  • v1.0.3 - Fixed error handling of HTTPError - 11/03/2019
  • v1.0.4 - Fixed error with reading token - 01/24/2021
  • v1.0.5 - Refresh token before request if token is expired - 05/09/2021

Authors

License

This project is licensed under the MIT License - see the LICENSE.txt file for details

apple-music-python's People

Contributors

mpalazzolo avatar dependabot[bot] avatar pyropy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.