(url)
return d
returns dictionary of name to list of podcast dicts
returns dictionary of name to list of podcast dicts
returns dictionary of name to list of podcast dicts
def parse(url):
    '''
    returns dictionary of name to list of podcast dicts
    '''
    d = {url[0]: []}
    resp = requests.get(url[1])
    soup = BeautifulSoup(resp.content, 'xml')
    items = soup.find_all('item')
    for item in items:
        i = {}
        i['title'] = item.title.text
        i['link'] = item.link.text
        if item.description is not None:
            i['description'] = item.description.text
        if item.pubDate is not None:
            i['date'] = item.pubDate.text
        if item.duration is not None:
            i['duration'] = item.duration.text
        if item.summary is not None:
            i['summary'] = item.summary.text
        if item.author is not None:
            i['author'] = item.author.text
        d[url[0]].append(i)
    logging.debug('Finished parsing {}'.format(url[0]))
    return d
def parse ( url ) : d = { url [ 0 ] : [ ] } resp = requests . get ( url [ 1 ] ) soup = BeautifulSoup ( resp . content , 'xml' ) items = soup . find_all ( 'item' ) for item in items : i = { } i [ 'title' ] = item . title . text i [ 'link' ] = item . link . text if item . description is not None : i [ 'description' ] = item . description . text if item . pubDate is not None : i [ 'date' ] = item . pubDate . text if item . duration is not None : i [ 'duration' ] = item . duration . text if item . summary is not None : i [ 'summary' ] = item . summary . text if item . author is not None : i [ 'author' ] = item . author . text d [ url [ 0 ] ] . append ( i ) logging . debug ( 'Finished parsing {}' . format ( url [ 0 ] ) ) return d