'''python audd.io wrapper'''

# Example

from utils import music_finder
from utils.music_finder import MusicFinder
from utils.extractor import Data
import config
import os

#os.environ['api_token'] = 'YOUR API TOKEN FROM https://dashboard.audd.io/'
config.SPOTIFY = True  # if you don't want result from spotify make it false
config.APPLE_MUSIC = True
# You can't make both variables flase at the same time

music = MusicFinder('True', 'https://github.com/abdimk/audd-python/raw/main/samples(Records)/test_audio5.m4a')
# print(music.finder()) # return all the result as json
audio_data = Data(music.finder())

def var():
title: {audio_data.title()}
artistName: {audio_data.artistName()}
ComposerName: {audio_data.composerName()}
release date: {audio_data.release_date()}
Spotify link: {audio_data.SPOTIFY_spotify()}
apple music preview: {audio_data.apple_music_previews_url()}''')


#out put

title: Na Na
artistName: Hewan Gebrewold
ComposerName: Natinael Girmachew
release date: 2021-02-19
Spotify link: {'spotify': 'https://open.spotify.com/artist/60fiWbQASuQ0otDUr7mBSE'}
apple music preview: https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview124/v4/50/09/16/5009166a-c740-6d16-7288-5fbd9eb08d66/mzaf_4264971115303501547.plus.aac.p.m4a


View Github