How to parse an HTML string in Google Apps Script without using XmlService?

后端 未结 8 1857
清歌不尽
清歌不尽 2020-12-14 09:12

I want to create a scraper using Google Spreadsheets with Google Apps Script. I know it is possible and I have seen some tutorials and threads about it.

The main ide

8条回答
  •  我在风中等你
    2020-12-14 09:49

    Could you use javascript to parse the html? If your Google Apps Script retrieved the html as a string and then returned it to a javascript function, it seems like you could parse it just fine outside of the Google Apps script. Any tags you want to scrape, you could send to a dedicated Google Apps function that would save the content.

    You could probably accomplish this more easily with jQuery.

提交回复
热议问题