SHARE
TWEET

Untitled

a guest Jan 17th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top