HTML Sources

i was wondering if there was a method to read structured data from a html webpage source.

I would like to get each value from the price column from this webpage

https://info.binance.com/

Sure, you can do this. The question is: should you? Typically, this type of data has an API that you can access. And you need to check if you can access the data for free or if it costs money.

dim rx as new RegEx
rx.SearchPattern = "(?mi-Us)symbolNum two"" data-value=""(.+)"""

dim rxOptions as RegExOptions = rx.Options
rxOptions.LineEndType = 4

dim match as RegExMatch = rx.Search( sourceText )

https://github.com/binance-exchange/binance-official-api-docs

I beleive this page is free for the next 30 days then I will have to pay for it.

Dim secureSite As New HTTPSecureSocket
secureSite.Secure = True
secureSite.ConnectionType = SSLSocket.TLSv12
Dim Page As String = secureSite.Get(“https://info.binance.com/en/currencies/litecoin”, 30)
// Get the current Binance price for LiteCoin

dim rx as new RegEx
rx.SearchPattern = “(?mi-Us)symbolNum three”" data-value=""(.+)"""
dim rxOptions as RegExOptions = rx.Options
rxOptions.LineEndType = 4

dim match as RegExMatch = rx.Search( Page )

If Match <> Nil Then
Label1.Text = Match.SubExpressionString(1)
Else
Label1.Text = “not found!”
End If