[NextRadio] 用python 和 mimms 下載大家說英語,空中英語教室,彭蒙惠英語

208 views
Skip to first unread message

Aladdin Chang

unread,
May 17, 2013, 2:19:42 AM5/17/13
to aster...@googlegroups.com

利用 python 及 mimms 下載大家說英語,空中英語教室和彭蒙惠英語的每日教學

==============================================
#!/usr/bin/python
import os, sys, re, urllib

today = os.popen('date +%Y%m%d').read()

f = urllib.urlopen("http://sc.studioclassroom.com/Sc-rD.php")
s = f.read()
f.close()
obj = re.findall(r'href[\s]+=[\s]+?\"(mms://203.69.69.81/.+?baa.+?\.wma)\">?', s)
if obj:
    os.system("mimms -q %s %s_baa.wma"%(obj[0],today.rstrip("\n")))

f = urllib.urlopen("http://lt.studioclassroom.com/LT-RaDio.php")
s = f.read()
f.close()
obj = re.findall(r'href[\s]+=[\s]+\"(mms://203.69.69.81/[\s\S]+?lta[\s\S]+?\.wma)', s)
if obj:
    os.system("mimms -q %s %s_lta.wma"%(obj[0],today.rstrip("\n")))

f = urllib.urlopen("http://ad.studioclassroom.com/Ad-RAd.php")
s = f.read()
f.close()
obj = re.findall(r'href[\s]+=[\s]+?\"(mms://203.69.69.81/.+?ada.+?\.wma)\">?', s)
if obj:
    os.system("mimms -q %s %s_ada.wma"%(obj[0],today.rstrip("\n")))

SC_rec.py

Darren Wu

unread,
Jun 20, 2013, 4:39:12 AM6/20/13
to aster...@googlegroups.com
Aladdin你好,

謝謝你的空英、彭蒙惠英文下載的python script
現在他們節目內容的線上收聽的連結語法有更改
(不知道是否是為了防止人家沒有開網頁就直接下載的緣故?)
你之前提供的script已無法下載

請參考彭蒙惠網站
http://ad.studioclassroom.com/Ad-RAd.php

給NextRadio用的script也要一併修改才能用了吧
雖然我還沒有使用NextRadio
我才正想要上網買USB音效卡來玩玩看呢

Thank you

-----
Trust in the LORD with all your heart and lean not on your own understanding; in all your ways submit to him, and he will direct your paths.
~ Proverbs  [3:5-6]


2013/5/17 Aladdin Chang <sp0...@gmail.com>


--
You received this message because you are subscribed to the Google Groups "Taiwan Asterisk Users' Group - www.osslab.com.tw" group.
To unsubscribe from this group and stop receiving emails from it, send an email to asterisk-tw...@googlegroups.com.
To post to this group, send email to aster...@googlegroups.com.
Visit this group at http://groups.google.com/group/asterisk-tw?hl=und.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Aladdin Chang

unread,
Jun 20, 2013, 5:07:20 AM6/20/13
to aster...@googlegroups.com
現在已經無法使用了...:(
還沒有找到可以解決的方法。


Reply all
Reply to author
Forward
0 new messages