LoginSignup
1
0

More than 5 years have passed since last update.

python で podcast をダウンロードした

Posted at

突然ですが、

SUNTORY SATURDAY WAITING BAR AVANTI って知ってます?

10年前位に終わってしまった FM ラジオの番組ですが、私はこれが、 大好きです
https://www.tfm.co.jp/podcasts/avanti/

ポッドキャストがまだ残っているようなので python で 全て取得しました

qiita.rb
import urllib.request

BaseUrl = "http://podcasts.tfm.co.jp/podcasts/tokyo/avanti/"
for i in range(365):
    mp3 = "avanti_vol{0}".format(i + 1) + ".mp3"
    url = BaseUrl + mp3 

    print(mp3)
    print(url)

    urllib.request.urlretrieve(url, "C:/Users/name/Downloads/"+mp3) 
1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0