使用PolyMerjs / WebComponent的Web刮擦网站
我正在使用 colly to web scrape YouTube图表。该网站使用Polymerjs,因此我有捕获DOM元素的问题。我进行的一个简单测试是document.queryselector(“#search-native”)
在控制台上,它返回null
。 我看到了一个称为ytmc-app
的元素,我可以得到此元素,但是之后不可能继续查询。
有人知道如何进行?
I'm using colly to web scrape youtube charts. This site use polymerjs and as a result, I'm having issues to capture the DOM elements. A simple test I did was document.querySelector("#search-native")
on console, and it's returning null
.
I saw an element called ytmc-app
and I could get this element, but it's not possible to continue querying after that.
Someone has idea how to proceed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论