def scrape_page(self, url):
        """
        Pull the elections and candidates from a CAL-ACCESS page.
        """
        # Go and get the page
        soup = self.get(url)

        # Loop through all the election sets on the page
        sections = {}
        for section in soup.findAll('a', {'name': re.compile(r'[a-z]+')}):

            # Check that this data matches the structure we expect.
            section_name_el = section.find('span', {'class': 'hdr14'})

            # If it doesn't just skip this one
            if not section_name_el:
                continue

            # Get the name out of page and key it in the data dictionary
            section_name = section_name_el.text
            sections[section_name] = {}

            # Loop thorugh all the rows in the section table
            for office in section.findAll('td'):

                # Check that this data matches the structure we expect.
                title_el = office.find('span', {'class': 'hdr13'})

                # If it doesn't, just quit no
                if not title_el:
                    continue

                # Log what we're up to
                if self.verbosity > 2:
                    self.log(title_el.text % ' Scraping office %s')

                # Pull the candidates out
                people = []
                for p in office.findAll('a', {'class': 'sublink2'}):
                    people.append({
                        'name': p.text,
                        'id': re.match(r'.+id=(\d+)', p['href']).group(1)
                    })

                for p in office.findAll('span', {'class': 'txt7'}):
                    people.append({
                        'name': p.text,
                        'id':  None
                    })

                # Add it to the data dictionary
                sections[section_name][title_el.text] = people

        return {
            'id': int(re.match(r'.+electNav=(\d+)', url).group(1)),
            'data': sections,
        }
dataset/ETHPy150Open california-civic-data-coalition/django-calaccess-campaign-browser/calaccess_campaign_browser/management/commands/scrapecalaccesscampaigncandidates.py/Command.scrape_page/swapped operands of `%`