![]()


Ich habe ja nur beschrieben wie die anderen alle Funktionieren.
|
|
Visual Basic Quellcode |
1 |
Public Class Form1 |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Light Microsystems« (24. September 2010, 18:28)
|
|
Visual Basic Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged 'Titel Dim TitleRegEx As New Regex("title=""(?<Title>(.*))"" />") Dim title As String 'Autor Dim AutorRegEx As New Regex("'VIDEO_USERNAME': '(?<Autor>(.*))',") Dim Autor As String 'Aufrufe Dim ViewRegEx As New Regex("<strong class=""watch-view-count"">(?<Views>(.*))</strong><br>Aufrufe") Dim Views As String Dim Request As HttpWebRequest = HttpWebRequest.Create("http://www.youtube.com/watch?v=O7rz_0p6AGc&feature=related") Dim Response As HttpWebResponse = Request.GetResponse() Dim reader As StreamReader = New StreamReader(Response.GetResponseStream) Dim httpContent As String = httpContent = reader.ReadToEnd httpContent = reader.ReadToEnd Views = ViewRegEx.Match(httpContent).Groups("Views").ToString Autor = AutorRegEx.Match(httpContent).Groups("Autor").ToString title = TitleRegEx.Match(httpContent).Groups("Title").ToString t = (Mid$(tRegEx.Match(httpContent).Groups("t").ToString, 1, 46)) URL = URL.Replace("http://www.youtube.com/watch?v=", "") Button1.Enabled = True Autor_.Text = Autor Titel.Text = title Aufrufe.Text = Views End Sub |

Zitat
17:42: Es funzt einfach nicht...
17:47: Habe den Fehler gefunden - meine Frau war's