Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for phrase in entry.iterfind(".//div[@class='phrase'] and ./parent::div[@class!='extras']]"):
- SyntaxError: prefix 'parent' not found in prefix map
- for phrase in entry.iterfind(".//div[@class='phrase'] and ./..[@class!='extras']]"):
- Traceback (most recent call last):File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/xml/etree/ElementPath.py", line 272, in iterfind
- selector = _cache[cache_key] KeyError: (".//div[@class='phrase'] and ./..[@class!='extras']]", None)
Add Comment
Please, Sign In to add comment