使用PolyMerjs / WebComponent的Web刮擦网站

发布于 2025-01-24 07:17:14 字数 427 浏览 2 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文