In ASP, do not use the third party component to crawl other site's page

Source: Internet
Author: User
Microsoft in ASP gives us a way to use ActiveX to do the page, we use a simple crawl page example to actually explain this method, in this site's column of the PHP layout, I have talked about how to use PHP to crawl other sites page.
<%
url = "Http://www.asp888.net/study/testSSi.txt"
Set inet = CreateObject ("Inetctls.inet")
inet. Requesttimeout = 20
inet. url = URL
strret = inet. OpenURL ()
%>
<HTML>
<HEAD>
<TITLE> Crawl page Test </TITLE>
</HEAD>
<BODY>

<P> the content of the page is:: <%=strret%></p>

</BODY>
</HTML>
Similarly, through the analysis of strret, we can filter out the data we need according to our requirements in this example, I want to let you know, in the ASP world, in addition to adodb,scripting In addition to some of the common components that MS provides, there are many components that are useful to us. As long as we pay attention to study, it will help.


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.