def get_attributes(parent, selector, attribute):
	"""Get a list of attribute values for child elements of parent matching the given CSS selector"""

	return [child.get(attribute) for child in parent.cssselect(selector)]