The comparison of two kinds of thieves procedure 1th/2 Page _ Thieves/Collection

Source: Internet
Author: User
Tags chr

Function GetURL (URL) Set retrieval = CreateObject ("Microsoft.XMLHTTP") with retrieval. Open ' get ', url, False. Send GetURL = Bytes2bstr (. responsebody) ' Verifies the acquisition information, if the information length is less than 100, the interception fails if Len (. responsebody) <100 Then ' Get remote file ' &url& ' failed. The "Response.End End If" and Set retrieval = "Nothing" Function ' binary turn string, otherwise there will be garbled! function Bytes2bstr (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 = str Return & Chr (CLng (thischarcode) * &h100 + CInt (nextcharcode)) i = i + 1 End If Next bytes2bstr = Strreturn en d function function SaveToFile (bodyall,filename) Dim objstream1 Set Objstream1=createobject ("ADODB.stream") objstream1.type=2 Objstream1.open objstream1.position=objstream1.size Objstream1.writetext bodyall Objstream1.savetofile filename,2 objstream1.close set objstream1=nothing enD function ' declares the intercepted format, intercepts from start, to last for End Function Getkey (html,start,last) filearray=split (Html,start) filearray2= Split (Filearray (1), last) getkey=filearray2 (0) End Function url= "http://www.86516.com" Html = GetURL (URL) savetofile HTML, "ce.htm"
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]

Current 1/2 page 12 Next read the full text
Related Article

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.