[ETC] "'XPathResult'이(가) 정의되지 않았습니다." 에러
https://stackoverrun.com/ko/q/6454766
javascript - IE11에서 Xpathresult가 정의되지 않았습니다.
일부 자바 스크립트를 사용하고 있습니다. 내가 사용했습니다 var xpathResults = document.evaluate(xpath, domContext, null, XPathResult.ANY_TYPE, null); IE11을 제외한 모든 브라우저에서 정상적으로 작동합니다. 오류가 표시됩니다 : 'XPathResult is undefined'. ...
stackoverrun.com
위 내용에 따르면 IE11은 XPathResult를 지원하지 않는다.
호환성 보기에 해당 웹사이트의 url을 추가하면 오류가 해결된다.
아래는 이번 오류를 확인하며 본 웹사이트들이다.
https://minus31.github.io/2018/06/22/Crawling-3/
CSS selector & XPATH - studio-31 | 김현규
123456789101112131415import requestsfrom scrapy.http import TextResponsereq = requests.get('https://ohou.se/productions/feed?best=true&selling=true')response = TextResponse(req.url, body=req.text, encoding='utf-8')titles = response.xpath('//*[@class="produ
minus31.github.io
https://developer.mozilla.org/en-US/docs/Web/API/XPathResult
XPathResult
The XPathResult interface represents the results generated by evaluating an XPath expression within the context of a given node.
developer.mozilla.org
https://ko.wikipedia.org/wiki/XPath
XPath - 위키백과, 우리 모두의 백과사전
위키백과, 우리 모두의 백과사전.
ko.wikipedia.org