<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_clubs(self, clubs_page):
 """Parses the DOM and returns user clubs attributes. :type clubs_page: :class:`bs4.BeautifulSoup` :param clubs_page: MAL user clubs page's DOM :rtype: dict :return: User clubs attributes. """

    user_info = self.parse_sidebar(clubs_page)
    second_col = clubs_page.find(u'div', {u'id': u'content'}).find(u'table').find(u'tr').find_all(u'td', recursive=False)[1]

    try:
      user_info[u'clubs'] = []

      club_list = second_col.find(u'ol')
      if club_list:
        clubs = club_list.find_all(u'li')
        for row in clubs:
          club_link = row.find(u'a')
          link_parts = club_link.get(u'href').split(u'?cid=')
          # of the form /clubs.php?cid=10178
          user_info[u'clubs'].append(self.session.club(int(link_parts[1])).set({u'name': club_link.text}))
    except:
      if not self.session.suppress_parse_exceptions:
        raise
    return user_info