Copy Web Data into datbase

Malik Asad Mahmood 126 Reputation points
2023-08-26T16:46:57.9366667+00:00

Hi Friends,
I am trying to copy get webpage values into my databases table using vb.net 2017, I am using following code but its not working

Dim Web As New HtmlAgilityPack.HtmlWeb
Dim Doc As New HtmlAgilityPack.HtmlDocument
Doc = Web.Load("https://scstrade.com/stockscreening/SS_TechSnapShot.aspx?symbol=NCPL")
For Each table As HtmlAgilityPack.HtmlNode In Doc.DocumentNode.SelectNodes("//*[@id='pricing']/tr/td")
MsgBox(table.InnerText)
Next

the website content I want to copy the URL as followed "https://scstrade.com/stockscreening/SS_TechSnapShot.aspx?symbol=NCPL" further refer to snapshot of required table content

thank you in advance

regards,

asadwebdata

Developer technologies | .NET | Other
Developer technologies | VB
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.