-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestWindow.xaml.vb
64 lines (29 loc) · 1.38 KB
/
TestWindow.xaml.vb
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Imports System
Imports System.IO
Imports System.Text.RegularExpressions
Public Class TestWindow
'http://ws.itwusun.com/fsong/tt/id_36444942.html
Private Sub btn1_Click(sender As Object, e As RoutedEventArgs)
Dim s = "http://ws.itwusun.com/fsong/kg/id_a781642ae8a39c4146dedbde38ca7490.html"
'File.WriteAllText("D:\\mp3.txt", Net.DownStringFromNet(s))
Dim html = Net.DownStringFromNet(s)
Dim result = Regex.Match(html, "mp3.+播放地址")
Console.WriteLine(result.Value)
End Sub
Function hah() As String
End Function
Private Sub btn2_Click(sender As Object, e As RoutedEventArgs)
'File.WriteAllText("D:\\2.txt", Net.Util.DownStringFromNet("http://ws.itwusun.com/search/song/taylor%20swift%20red%2022/p/2"))
Dim method As Func(Of String)
method = AddressOf hah
Dim t = Task.Run(New Action(Sub()
Threading.Thread.Sleep(2000)
Console.WriteLine("Task Run...")
End Sub))
End Sub
Private Sub btn3_Click(sender As Object, e As RoutedEventArgs)
'File.WriteAllText("D:\\3.txt", Net.Util.DownStringFromNet("http://ws.itwusun.com/fsong/qq/id_5028625.html"))
Dim s = "abc-list-iop"
Dim arr = s.Split("list".ToCharArray())
End Sub
End Class