Click here to Skip to main content
15,889,116 members

Comments by Member 12268183 (Top 7 by date)

Member 12268183 6-Jul-18 2:42am View    
Thank you!
How I can see if Amazon offer an API allowing the get the information?
Member 12268183 4-Jul-18 11:03am View    
I tried with another web page and everything is OK. Is there any special with amazon pages?
Member 12268183 4-Jul-18 5:08am View    
I see that inner returns null. This node is working when I download the page in my computer. When I would like to use the information from the web page, inner returns null. How to resolve this problem?
Member 12268183 3-Jul-18 9:17am View    
Here is my code (I have marked the line with the error. The The application is built successfully but the error occures during the execution):

var nodes = doc.DocumentNode.SelectSingleNode("//span[@ class='a-size-medium']");

var inner = doc.DocumentNode.SelectNodes("//div[@ class='sc-list-item-content']");

foreach (HtmlAgilityPack.HtmlNode item44 in inner) (//The error is in this line//)
{
cnt_array[cnt] = item44.InnerText;
textBox2.Text = cnt_array[5];
cnt++;
}
Member 12268183 27-Jun-18 15:58pm View    
I would like to extract the spans from each div sequentially. When one div hasn't span element I would like to set this element to 0.