<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_items(self, html):
 """ Get state, county, zipcode, address code from lists page. Example: target url: http://www.zillow.com/browse/homes/md/ <<<<<<< HEAD ======= data: [(href, name)] """

        captcha_patterns = [
            "https://www.google.com/recaptcha/api.js", "I'm not a robot"]
        for captcha_pattern in captcha_patterns:
            if captcha_pattern in html:
                raise exc.CaptchaError("Found %r in html!" % captcha_pattern)

        data = list()
        soup = self.to_soup(html)

        div = soup.find("div", class_="zsg-lg-1-2 zsg-sm-1-1")

        for li in div.find_all("li"):
            a = li.find_all("a")[0]
            href = a["href"]
            name = a.text.strip()
            data.append((href, name))
        return data