The implementation code of the ED2K connection in the dog film and television is extracted by VBS _vbs

Source: Internet
Author: User
Tags chr
Open the dog film and television, search for the resources they need, the type of resource selected: Electric Donkey, the following figure:



I found a 19.75GB:



Click on it, the following image appears in the interface, you can see the normal download address has been blocked. We copy the URL in the Address bar, standby.



Open from this site to download the VBS script, copy the URL to the input box, and then determine, a little over a while, will be prompted to complete the message box, the length of time by your speed decision!



Finally, we get the final ed2k connection address, all saved in the Ed2k.txt file in the current directory:



What are you waiting for? Open your download tool and start downloading it! ^_^

Geted2klink.vbs code as follows, you can also download Geted2klink directly:

Copy Code code as follows:

On Error Resume Next

sourceURL = InputBox (_
vbCrLf & "You will receive a prompt when the extraction is complete. In the process of "& vbCrLf & _
vbCrLf & "Please be patient, file results are guaranteed: Ed2k.txt" & vbCrLf & _
vbCrLf & "Please enter the link address:" & vbCrLf, "Get ed2k link", "http://" _
)

IF sourceURL = "" or sourceURL = "http://" Then
MsgBox "link address cannot be empty!", "Get ed2k link"
Wscript.Quit (1)
End If

' Get web page source
Set objhttp = CreateObject ("Microsoft.XMLHTTP")
Objhttp.open "Get", sourceURL, False
Objhttp.send
SourceCode = Split (Codeconver (objhttp.responsebody), Chr (10))

' Analysis page Source
For i = 0 to UBound (sourcecode)-lbound (sourcecode)
Matchline = InStr (SourceCode (i), "ed2k://|file|")
If matchline <> 0 Then
Arrpub = Split (Replace (SourceCode (i), "},{", "}#{"), "#"
For K = 0 to UBound (arrpub)-lbound (arrpub)
Ed2klink = Ed2klink & Split (Split (Arrpub (K), ",") (5), "" "" "(3) & vbCrLf
Next
End If
Next

' Save results
If Ed2klink = "" Then
MsgBox "There is no ed2k connection found on this page!", "The Get ed2k link"
Wscript.Quit (2)
Else
Set objFSO = CreateObject ("Scripting.FileSystemObject")
objFSO.OpenTextFile ("Ed2k.txt", 8,true). Write (Ed2klink)
End If

MsgBox "has done all the work!", "ed2k"
Wscript.Quit (0)

Function Codeconver (vIn)
Strreturn = ""
For i = 1 to LenB (vIn)
Thischarcode = AscB (MidB (vin,i,1))
If Thischarcode < &h80 Then
Strreturn = Strreturn & Chr (Thischarcode)
Else
Nextcharcode = AscB (MidB (vin,i+1,1))
Strreturn = Strreturn & Chr (CLng (thischarcode) * &h100 + CInt (nextcharcode))
i = i + 1
End If
Next
Codeconver = Strreturn
End Function

For testing only, such as finding any bugs, welcome to my reflection!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.