所以我成功地抓住了Google云端硬盘上文档的text/html
内容,但我想知道是否有办法在没有评论的情况下获取内容。我已经浏览了文档,我只能看到列出评论的方法,而不是删除它们。
以下是从Google文档返回的HTML示例(来自body
标记内):
<p class="c4">
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper commodo orci, id pretium magna luctus sed. Sed</span>
<sup><a href="#cmnt1" name="cmnt_ref1">[a]</a></sup>
<span> elementum consequat erat in bibendum. Donec lobortis convallis urna, ac sodales quam cursus vel. Mauris nec augue eu ligula ultricies blandit. Aenean blandit bibendum volutpat. In gravida turpis sed turpis adipiscing tempus. Nullam ut nunc sed nunc adipiscing ve</span>
<span>hicula ac vel tellus. Donec elit lacus, auctor a sodales viverra, viverra sed felis. Mauris ornare velit ac lacus placera</span>
<sup><a href="#cmnt2" name="cmnt_ref2">[b]</a></sup>
<span>t, sit amet tincidunt eros pellentesque. Nullam neque massa, sagittis ac lacinia eleifend, placerat at elit. Fusce ultrices vulputate congue. Nulla pellentesque elit vitae elit faucibus, sit amet dapibus nunc eleifend. Duis placerat sapien at nulla congue, quis commodo nisi tempor. Duis auctor nunc ut augue pretium suscipit.</span>
</p>
<p class="c1">
<span></span>
</p>
<p class="c4">
<span>Sed nec bibendum turpis, id pharetra est. Mauris et pretium nisi. Nullam non imperdiet sapien. Aliquam erat volutpat. Mauris rhoncus magna magna, vitae rutrum enim scelerisque ac. Aenean consequat euismod nibh, sed dignissim velit consequat vitae. Fusce vel placerat turpis. Sed ut dignissim risus. Etiam </span>
<span>luctus tincidunt nunc id volutpat. Ut ac pharetra quam, nec imperdiet mauris. Fusce consectetur vitae est eget laoreet. Interdum et malesuada fames ac ante ipsum primis in faucibus. Praesent sit am</span>
<sup><a href="#cmnt3" name="cmnt_ref3">[c]</a></sup>
<span>et arcu facilisis odio cursus pharetra ac vulputate lorem. Nullam pharetra viverra quam, a placerat purus convallis sollicitudin. Donec bibendum est ac libero sodales tempus vel vel lectus. Sed commodo bibendum sapien nec tincidunt.</span>
</p>
<p class="c1">
<span></span>
</p>
<div class="c3">
<p class="c0">
<a href="#cmnt_ref1" name="cmnt1">[a]</a>
<span>Ahmed Nuaman:</span>
</p>
<p class="c0">
<span>Here's a comment</span>
</p>
</div>
<div class="c3">
<p class="c0">
<a href="#cmnt_ref2" name="cmnt2">[b]</a>
<span>Ahmed Nuaman:</span>
</p>
<p class="c0">
<span>Here's another comment</span>
</p>
</div>
<div class="c3">
<p class="c0">
<a href="#cmnt_ref3" name="cmnt3">[c]</a>
<span>Ahmed Nuaman:</span>
</p>
<p class="c0">
<span>Another further comment</span>
</p>
</div>
答案 0 :(得分:0)
您使用哪个URL来获取HTML内容?我怀疑不是使用exportLinks:text / html,而是使用其中一个便捷网址。