15,896,727 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.
Member 12268183
27-Jun-18 15:55pm
View
Yes, I would like to get an output array like the mentioned above from you. The '2' character in the third array element is a mistake. The third element doesn't have '2' character. I didn't define the fourth element. It's a mistake too. I apologize!
Member 12268183
27-Jun-18 15:02pm
View
Thank you for your answer. I would like to extract all the span elements into an array. The second div has not a span. I would like the array to look like this: {span = "c", 0, span = "c"}, following the html code.
Show More