如何在画布元素中获取信息

发布于 2025-02-02 12:57:35 字数 345 浏览 1 评论 0原文

因此,我试图获得一些帆布元素中的数字,我尝试使用BS4进行Webscrapy,但一无所获,因此我没有任何相关的内容。

<div class="historyStatisticsGrid--86e15" data-interactive="true">
<canvas width="286" height="87" style="touch-action: manipulation; `width: 228.8px; height: 69.6px;"></canvas></div>`

帆布看起来与此相似,如果我不能废除,我可以获得这些信息(对不起,英语不好)。

so I'm trying to get some numbers that are inside a canvas element, i tryied to webscrapy it with bs4, but got nothing, so i have nothing relevant to show.

<div class="historyStatisticsGrid--86e15" data-interactive="true">
<canvas width="286" height="87" style="touch-action: manipulation; `width: 228.8px; height: 69.6px;"></canvas></div>`

the canvas look similar to this, if i can not scrap is there aniway that i can get that information(sorry for bad english).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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