comdev/rss_lib.py
def scrape(ctx, url):
    """
    Rip the events from a given rss feed, normalize the data and store.
    """
    data = load_feed(url)

    feed = data['feed']
    entries = data['entries']

    # THIS IS SPECIFIC TO # http://konfery.cz/rss/

    _type = 'community'
    country = 'Czech Republic'
    # title, title_detail, links, link, published, summary, tags
    # unused: summary_detail, guidislink, published_parsed
    for entry in entries:
        _id = sluggify(entry['id'])
        city = entry['tags'][0]['term']
        landing = entry['link']
        start_time = dt_normalize(entry['published_parsed'], local_tz=True)
        title = entry['title']
        summary = entry['summary']
        link = entry['link']

        ipdb.set_trace()
def scrape(ctx, url):
    """
    Rip the events from a given rss feed, normalize the data and store.
    """
    data = load_feed(url)

    feed = data['feed']
    entries = data['entries']

    # THIS IS SPECIFIC TO # http://konfery.cz/rss/

    _type = 'community'
    country = 'Czech Republic'
    # title, title_detail, links, link, published, summary, tags
    # unused: summary_detail, guidislink, published_parsed
    for entry in entries:
        _id = sluggify(entry['id'])
        city = entry['tags'][0]['term']
        landing = entry['link']
        start_time = dt_normalize(entry['published_parsed'], local_tz=True)
        title = entry['title']
        summary = entry['summary']
        link = entry['link']

        ipdb.set_trace()
Rip the events from a given rss feed, normalize the data and store.