How do I parse an HTML Code which is generated via Java Script

前端 未结 1 1608
独厮守ぢ
独厮守ぢ 2021-01-29 13:03

My task at hand is to download a file through vba. The problem is, that the page is mostly generated via JavaScript. Sorry that i cannot just share the page with you, because I

相关标签:
1条回答
  • 2021-01-29 14:09

    What you have described looks like a typical DHTML that could be generated by JS after XHR request. So open the web page e. g. in Chrome, check the Network tab. After the target content has been generated on the page, you will see all requests on the tab, examine them, usually all the data you need to retrieve are shown there (note that some conversion of the data may be necessary).  If you find it then you may just do a XHR with the same parameters to retrieve result. Or another way, you can retrieve the generated HTML content accessing DOM, if the iframe is same origin, as it was mentioned above.

    0 讨论(0)
提交回复
热议问题