from time import strftime,localtimeimport httplib2import re, string, sys, unicodedatadate = strftime('%Y-%m-%d', localtime())print dateurl = "http://tv.cntv.cn/index.php?action=epg-list&date="+date+"&channel=cctvgaoqing"#url = "http://tv.cntv.cn/index.php?action=epg-list&date=2013-04-01&channel=russian"headers = {"Host":"tv.cntv.cn", "Referer":"http://tv.cntv.cn/epg", "X-Requested-With":"XMLHttpRequest"}h = httplib2.Http()resp, content = h.request(url, 'GET', headers=headers)#print resp#print contentlistP=re.findall(r"
- (.*?)