def _maybe_get(elt, item, info, conversion=None):
maybe_item = elt.find(item)<EOL>if maybe_item is not None:<EOL><INDENT>maybe_item = maybe_item.get(info)<EOL>if conversion is not None:<EOL><INDENT>maybe_item = conversion(maybe_item)<EOL><DEDENT><DEDENT>return maybe_item<EOL>
Extract and convert info if item is present.