def _read_item_data (feed_url, get_fn):
    """Return a list of item data (specified by the get_fn)
    found in this feed url"""
    data = []
    feed = parse_feed(feed_url)
    if feed is not None:
        for entry in feed.entries:
            try:
                data.append(get_fn(entry))
            except __HOLE__, detail:
                print >> sys.stderr, detail
                data.append(None)
    return data
dataset/ETHPy150Open dpapathanasiou/cmdline-news/cmdlinenews.py/_read_item_data