<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigeru-mokicks</author_name>
  <author_url>https://blog.hatena.ne.jp/shigeru-mokicks/</author_url>
  <blog_title>As rookie</blog_title>
  <blog_url>https://mokicks.hatenablog.com/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>こんにちは。 持っている音楽(mp3)の再生時間を調べたいときありますよね？ 「python mp3」 で検索するとでてくるとは思います。pygame とか 今回は再生する気がありません。 どうやらmutagen というモジュールがあるらしい https://mutagen.readthedocs.io/en/latest/ とっても簡単。pipでインストールできる。 pip install mutagen vim ongaku.py from mutagen.mp3 import MP3 audio = MP3('example.mp3') print (audio.info.length)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmokicks.hatenablog.com%2Fentry%2F2016%2F11%2F18%2F032649&quot; title=&quot;pythonでmp3の再生時間を取得する - As rookie&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/shigeru-mokicks/20161118/20161118032426.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-11-18 03:26:49</published>
  <title>pythonでmp3の再生時間を取得する</title>
  <type>rich</type>
  <url>https://mokicks.hatenablog.com/entry/2016/11/18/032649</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
