Guest User

Untitled

a guest
Jan 17th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. for phrase in entry.iterfind(".//div[@class='phrase'] and ./parent::div[@class!='extras']]"):
  2.  
  3. SyntaxError: prefix 'parent' not found in prefix map
  4.  
  5. for phrase in entry.iterfind(".//div[@class='phrase'] and ./..[@class!='extras']]"):
  6.  
  7. Traceback (most recent call last):File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/xml/etree/ElementPath.py", line 272, in iterfind
  8. selector = _cache[cache_key] KeyError: (".//div[@class='phrase'] and ./..[@class!='extras']]", None)
Add Comment
Please, Sign In to add comment