How to get detail (Title,Artist) from .mp3 files in python using eyed3

后端 未结 5 1088
不思量自难忘°
不思量自难忘° 2021-01-15 15:57

Here is my code

import eyed3

audiofile = eyed3.load(\"19 Calvin Harris - Summer.mp3\")

print(audiofile.tag.artist)

This is an error

5条回答
  •  难免孤独
    2021-01-15 16:39

    Try this Code , it worked for me

    import eyed3
    
    def show_info():
        audio = eyed3.load("[PATH_TO_MP3]")
        print audio.tag.artist
        print audio.tag.album
        print audio.tag.title
    
    show_info()
    

提交回复
热议问题