'Parse configured url and return releases array'

def parse_site(self, url, task):

    try:
        page = task.requests.get(url).content
    except RequestException as e:
        raise plugin.PluginError((u'Error    getting    input    page:    %s' % e))
    soup = get_soup(page)
    releases = []
    for entry in soup.find_all(u'div', attrs={u'class': u'entry'}):
        release = {}
        title = entry.find(u'h2')
        if (not title):
            log.debug(u'No    h2    entrytitle')
            continue
        release[u'title'] = title.a.contents[0].strip()
        log.debug((u'Processing    title    %s' % release[u'title']))
        for link in entry.find_all(u'a'):
            if (not link.contents):
                continue
            link_name = link.contents[0]
            if (link_name is None):
                continue
            if (not isinstance(link_name, NavigableString)):
                continue
            link_name = link_name.strip().lower()
            if link.has_attr(u'href'):
                link_href = link[u'href']
            else:
                continue
            log.debug((u'found    link    %s    ->    %s' % (link_name, link_href)))
            if (link_name.lower() == u'imdb'):
                log.debug((u'found    imdb    link    %s' % link_href))
                release[u'imdb_id'] = extract_id(link_href)
            temp = {}
            temp[u'title'] = release[u'title']
            temp[u'url'] = link_href
            urlrewriting = plugin.get_plugin_by_name(u'urlrewriting')
            if urlrewriting[u'instance'].url_rewritable(task, temp):
                release[u'url'] = link_href
                log.trace((u'-->    accepting    %s    (resolvable)' % link_href))
            else:
                log.trace((u'<--    ignoring    %s    (non-resolvable)' % link_href))
        if (u'url' not in release):
            from flexget.utils.log import log_once
            log_once((u'%s    skipped    due    to    missing    or    unsupported    (unresolvable)    download    link' % release[u'title']), log)
        else:
            releases.append(release)
    return releases
