Hackito
Member
Hello. I'm trying to extract parts of web pages and load them into a webview, but for some reason it doesn't work. Please help!
Error: ResponseError. Reason: , Response: <!DOCTYPE html>
Error: ResponseError. Reason: , Response: <!DOCTYPE html>
webview:
Private Sub CargarReparto
Dim http As HttpJob
http.initialize("", Me)
http.Download("https://www.themoviedb.org/movie/603692-john-wick-chapter-4")
Wait For (http) jobdone(j As HttpJob)
If j.Success Then
Dim str As String = j.GetString
Dim s1 As Int = str.IndexOf($"<section class="panel top_billed scroller">"$)
Dim s2 As Int = str.IndexOf2($"</section>"$, s1)
str = str.SubString2(s1, s2)
Log("s1:" & s1)
Log("s2:" & s2)
WebView1.LoadHtml(str)
End If
End Sub