'Versions of a bill are on a separate page, linked to from the column
labeled, "Bill Text", on the search results page.'

def extract_versions(self, bill, doc, chamber, version_list_url):

    version_resp = self.get(version_list_url)
    version_html = version_resp.text
    if ('resolution' in version_resp.url):
        bill.add_version_link('resolution    text', version_resp.url, media_type='text/html')
    else:
        version_doc = lxml.html.fromstring(version_html)
        for v in version_doc.xpath('//a[starts-with(@href,    "text.php")]'):
            version_url = urllib.parse.urljoin(VERSION_URL_BASE, v.get('href'))
            if ('pdf' not in version_url):
                bill.add_version_link(v.text.strip(), version_url, media_type='text/html', on_duplicate='ignore')
    return bill
