예제 #1
0
def get_rss(url):
    xml = common.get_cached_data(url)
    xmldoc = minidom.parseString(xml)
    items = []
    xmlItems = xmldoc.getElementsByTagName("item")
    for item in xmlItems:
        items.append(to_object(item))
    return items
예제 #2
0
def get_tweets(url):
    json = common.get_cached_data(url)
    return json