Use the extract_properties() method.