Question get text data from website

Badi

Member
Joined
Mar 24, 2013
Messages
11
Programming Experience
1-3
I want to get text data from website in this way

7iRw8qU.png

gvEBRiH.png


i want only to get that text which i want not all elements.. from website

thanks
 
'token' variable is same as before, that and the previous loop is all the code.
 
hello,


may i ask u here cuz i'm not going to understand that code


lets make it easy


i want to get only this text


"name": "Help Rooms",
"name": "Special Features",
"name": "Welcome Lobbies",


ok so the code which i don't understand


VB.NET:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click




        Dim web As New Net.WebClient
        Dim text = web.DownloadString("WEBSITE")
        Dim list = token("list")
        Dim name = "Name: " & result("name").ToString
        For Each item In token("result")("list")




            Dim Name = "Name: " & list("name")




        Next




    End Sub


this i'm not understanding if you can correct codes i mean i don't know where to put it that code which u send me
thanks
 
No, look at post 4, there is 'token' variable and its value, as I said same as before.
What do you think the code JToken.Parse(text) does? Could it be that it parses the string of json data to a JToken object?
 
No im not talking about JToken parse text ok

this is post #4.
Dim web As New Net.WebClient

Dim text = web.DownloadString("WEB URL")


Dim token = Newtonsoft.Json.Linq.JToken.Parse(text)
Dim profile = token("Profile")

Dim country = "Country: " & profile("country").ToString

Dim content = "Content: " & profile("adContent").ToString

Dim accdate = "Date: " & profile("dateAccountCreated").ToString


Me.TextBox1.Text = String.Join(vbNewLine, {country, content, accdate})

where to put this code?

For Each item In token("result")("list")
 
Back
Top