简体   繁体   中英

How to get product price from web page?

I pull the html code from the web page but the price is not in the html code. Can you help me?

Screenshot

HtmlAgilityPack.HtmlWeb web = new HtmlAgilityPack.HtmlWeb();
HtmlAgilityPack.HtmlDocument doc = web.Load("https://www.ceptesok.com/powerball-tablet-60li");
string html = doc.DocumentNode.InnerHtml;

It depends on how the site owner has posted the price. If it's dynamic you can see it by just doing the inspect element but if it's coming as a dynamic data(from database) then you cannot see it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM