有这个库: https://github.com/tautologistics/node-htmlparser可以用来从JavaScript解析HTML,它位于节点中,但是由于它不使用任何依赖关系,因此您只需复制并粘贴所需的函数即可.恐怕这不是一件容易的事.I am struggling to put a script together to handle the scraping of a javascript rendered web page through Apps Script. Found this How to scrape Javascript rendered websites using Javascript? here, but I don't know how to put this together. Such as load puppeteer. Any help would be appreciated. 解决方案 You can try to scrape the initial HTML, since actually scraping the rendered HTML is extremely hard to do, you'd have to use a headless browser.There is this library: https://github.com/tautologistics/node-htmlparser which you can use to parse HTML from JavaScript, it is in node, but because it doesn't use any dependencies, you can just copy and paste the functions you need.Parsing it's not a very easy task I'm afraid. 这篇关于使用Apps脚本抓取javascript呈现的网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!