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 XTWHuoDongYUGao_update(): url = "http://xtw.cuit.edu.cn/a/huodongyugao/" newslistdata = CUIT.getXiaoTuanWei_HuoDongYuGao(CUIT.getHtml(url)) update_news = NewsCache.checkNewNews(newslistdata, "huodongyugao") NewsCache.refreshCache(newslistdata, "huodongyugao") #刷新新闻缓存 return update_news
def guojijiaoliu_update(): url_guojijiaoliu = "http://gjjl.cuit.edu.cn/" newslistdata = CUIT.getGuojijiaoliu(CUIT.getHtml(url_guojijiaoliu)) update_news = NewsCache.checkNewNews(newslistdata, "guojijiaoliu") NewsCache.refreshCache(newslistdata, "guojijiaoliu") #刷新新闻缓存 return update_news
def JWC_XueKeJinSai_update(): url = "http://jwc.cuit.edu.cn/Information/L3NewsList/c382c5627c6943c5916c77d9ae8d6c15/1" newslistdata = CUIT.getXueKeJingSai(CUIT.getHtml(url)) update_news = NewsCache.checkNewNews(newslistdata, "jwc_xuekejingsai") NewsCache.refreshCache(newslistdata, "jwc_xuekejingsai") #刷新新闻缓存 return update_news