Issue with HTMLAgilityPack parsing HTML using C#

前端 未结 3 1601
夕颜
夕颜 2021-01-21 05:54

I\'m just trying to learn about HTMLAgilityPack and XPath, I\'m attempting to get a list of (HTML Links) companies from the NASDAQ website;

http://www.nasdaq.com/quotes/

3条回答
  •  别那么骄傲
    2021-01-21 06:41

    If you look at the page source for that URL, there's not actually an element with id=indu_table. It appears to be generated dynamically (i.e. in javascript); the html that you get when loading directly from the server will not reflect anything that's changed by client script. This is probably why it's not working.

提交回复
热议问题