def news_zonghe_update(): url_xueshu = "http://www.cuit.edu.cn/NewsList?id=1" newslistdata = CUIT.getXueshuNews(CUIT.getHtml(url_xueshu)) update_news = NewsCache.checkNewNews(newslistdata, "news_zonghe") NewsCache.refreshCache(newslistdata, "news_zonghe") #刷新新闻缓存 return update_news
def news_zonghe(): url_xueshu = "http://www.cuit.edu.cn/NewsList?id=1" return CUIT.getXueshuNews(CUIT.getHtml(url_xueshu))
def news_jiaodian(): url_xueshu = "http://www.cuit.edu.cn/NewsList?id=3" return CUIT.getXueshuNews(CUIT.getHtml(url_xueshu))
def news_gongzuojiaoliu(): url_xueshu = "http://www.cuit.edu.cn/NewsList?id=5" return CUIT.getXueshuNews(CUIT.getHtml(url_xueshu))
def news_xingxigonggao(): url_xueshu = "http://www.cuit.edu.cn/NewsList?id=2" return CUIT.getXueshuNews(CUIT.getHtml(url_xueshu))