【发布时间】:2018-09-26 08:19:47
【问题描述】:
所以我在一个网站上,我想获得一个链接。我想获取的链接显示在网站上,但在 html 文件中不可见。有一个复制按钮,可将链接复制到剪贴板。我想得到链接,有人知道我怎么能得到它吗? html 看起来像这样:
<div class="containerInvite">
<div class="title">Invite your friends!</div>
<div class="inviteBar">
<input type="text" readonly id="invite"> --Here should be the link
<button class="button btn btn-primary"
id="inviteCopyButton">Copy</button> --The Button that copies the link
</div>
</div>
【问题讨论】:
-
你能分享一下这个网站,让我得到更多的解决方案吗?
-
@SmashGuy 该网站是skribbl.io。在该站点上,您必须单击“创建私人房间”按钮,然后您会看到我想要获取的链接。
-
这里的问题是 url 不会出现在 html 中,它是在您按下
Create Private Room时动态生成的。我试图追踪它,但由于时间不足而失败。似乎有些复杂。祝你好运。 -
@SmashGuy 好的。感谢您的尝试。
标签: javascript node.js web-scraping nightmare