Experience exchange of acquisition programming (I.) preface

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

"Small sites do not need maintenance, just because your program is too stupid, so you become an endless website maintainer." "--The Silent Sea

Objective

Often have friends in Q Group (75604923) asked about the collection of related issues, each time for the individual to answer, always can not say very comprehensive, many friends expressed dissatisfaction, today published this article, detailed introduction to the design of the acquisition program. In fact, "Silent Sea" is an amateur ASP enthusiasts, ASP comprehensive technology should be said to be a "Shita." But for the acquisition of the program, it should be said that there is a bit of research, because I am the acquisition program is obsessed with programming, fascinated by ASP, but also from here began their own programming path.

The function of the acquisition procedure.

This question may not need to say much, each stationmaster may feel the special need, because our energy must have limited, unlike those big network company, has the specialized journalist and the network writer. So, in order to enrich their website content, borrow sign other website content undoubtedly became a best way, that is, this reason, thousands of webmaster unknowingly into the "copy and paste" of the operator, in and webmaster Friends of the chat, most stationmaster do the work every day is "copy paste". What a boring job it is, but I have to do the most annoying things for my own sake.

In this way, the acquisition program become an indispensable webmaster tools, to the webmaster brought a lot of convenience, even if our website content has been rich, but also saved a lot of energy and time. (Http://www.66666999.com and http://www.99jpw.cn/may be examples of the acquisition program site, no need for any updates, the site will always be new.) )

However, there are many webmaster but will not design their own collection procedures, downloaded from the Internet program is either a charge, or is not fully functional, often can not let people satisfied. Even if it is a charge, it is not very convenient to use, because it requires a lot of manual operation.

"Silent Sea" that: Acquisition program to really play its convenient and quick advantage, the best way is tailored to their own site design, and then integrated with the site to become a part of the site, only in this way can be considered a successful acquisition program.

But how does the acquisition process work?

Second, how to do the acquisition program.

"The Silence of the sea" that the acquisition program is not difficult, as long as there are some ASP programming common sense, I think a day to learn it, is no problem. (Believe me, you will read the article, I promise not to let you down, do not believe my words please read, I promise you will believe me after reading.) )

The basic principle of the acquisition program is simple: It includes two steps:

1, download the target page;

We know that the acquisition program to help us do the work is actually "copy and paste", then to copy down a website, home page you need to open Ah, the process is actually download the target page, but we are not manual download, but the use of procedures to complete it.

Here is the "core technology": XMLHTTP, which can download the Web page for the next use.

2, extract the content of the Web page we need;

In the last step we completed the first step: Download the Web page.

But not all downloads are what we need, so the work to do is to extract what we need, remove unwanted, and store in the database. The main technique of this step is: regular expression.

Third, what kind of acquisition procedures.

To do the above two steps, it should be said that a complete acquisition program has been completed. It can collect what we need and then store it in the database for us to use. But is this what we really need? Obviously not, because we have to use the acquisition program to support our website, it is necessary to use it to complete almost the work. I think: If your site added a collection program, so even if the long-term maintenance, the site is still new, so that is successful.

The above acquisition program obviously does not, because you have to start the acquisition program, and then the data into the Web site database, and then generate HTML, and so on, there is still a lot of work to do. Our ideal acquisition program is no manual to do any work, so after the completion of the acquisition program we have to do some matching procedures to ensure the operation of the acquisition program, and the perfect integration with the site.

1, automatically start the acquisition program;

2, the collection of data directly into the Web site database;

3, supporting the production of HTML and other follow-up work.

Done above three points, we can say that they have done a set of still can collect the program, then we should specifically how to do it, please see "Acquisition Programming Experience Exchange (ii)-Download the Web page."

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.