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
def get_tweets(url): json = common.get_cached_data(url) return json