1
I’m trying to get the contents of an Strong text from the submarine site. When I open the website with browser I can see in the code the content however, using Htmlagilitypack the content returns empty.
Example:
HtmlNodeCollection produtos = document.DocumentNode.SelectNodes("//article[@data-component='single-product']");
foreach (HtmlNode produto in produtos)
{
produto.SelectSingleNode(".//span[@class='sale price']/strong").InnerText.Trim();
}
Request for the page
HtmlWeb WebGet = new HtmlWeb ();
HtmlDocument page = webGet.Load("http://busca.submarino.com.br/busca.php?q=eletrodomesticos+e+eletroportateis&page=1")
I need to send POST, add parameters in the load or another method to get the content?
Perfect. Thank you.
– Jean Gustavo Prates
Rubens, have any idea how to do this via console application?
– Jean Gustavo Prates
I believe it is not possible due to the following dependency: using System.Windows.Forms;
– rubStackOverflow