def parse_link_id(link):
 return link.get('href')[(link.get('href').find("'") + 1):link.get('href').rfind("'")]

def parse_link_id ( link ) : return link . get ( 'href' ) [ ( link . get ( 'href' ) . find ( "'" ) + 1 ) : link . get ( 'href' ) . rfind ( "'" ) ]
extracts the div[@id] from the links on the documentsforbill pages .