'Scrape all bills for a given chamber and a given session.
This method uses the legislature\'s search page to collect all the bills
for a given chamber and session.'

def scrape(self, session=None, chamber=None):

    if self.is_testing():
        self.debug('TESTING...')
    if (not session):
        session = self.latest_session()
        self.info('no    session    specified,    using    %s', session)
    chambers = ([chamber] if chamber else ['upper', 'lower'])
    for chamber in chambers:
        self.get_bill_topics(chamber, session)
        if (self.is_testing() and (len(self.testing_bills) > 0)):
            for b in self.testing_bills:
                bill_url = (BILL_DETAIL_URL % (self.search_chamber(chamber), b, 2017))
                version_url = (VERSION_URL % (self.search_session(session)[(-4):], self.search_session(session)[0], b))
                (yield self.get_bill_info(chamber, session, bill_url, version_url))
        else:
            bills = self.get_full_bill_list(chamber, session)
            for b in bills:
                (yield self.get_bill_info(chamber, session, b['bill_url'], b['version_url']))
