We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30e914a commit 56b2d84Copy full SHA for 56b2d84
selectorlib/selectorlib.py
@@ -73,7 +73,7 @@ def extract(self, html: str, base_url: str = None):
73
return fields_data
74
75
def _extract_selector(self, field_config, parent_parser):
76
- if 'xpath' in field_config:
+ if field_config.get("xpath") is None:
77
elements = parent_parser.xpath(field_config['xpath'])
78
else:
79
css = field_config['css']
0 commit comments