Пример #1
0
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
Пример #2
0
def news_zonghe():
    url_xueshu = "http://www.cuit.edu.cn/NewsList?id=1"
    return CUIT.getXueshuNews(CUIT.getHtml(url_xueshu))
Пример #3
0
def news_jiaodian():
    url_xueshu = "http://www.cuit.edu.cn/NewsList?id=3"
    return CUIT.getXueshuNews(CUIT.getHtml(url_xueshu))
Пример #4
0
def news_gongzuojiaoliu():
    url_xueshu = "http://www.cuit.edu.cn/NewsList?id=5"
    return CUIT.getXueshuNews(CUIT.getHtml(url_xueshu))
Пример #5
0
def news_xingxigonggao():
    url_xueshu = "http://www.cuit.edu.cn/NewsList?id=2"
    return CUIT.getXueshuNews(CUIT.getHtml(url_xueshu))