個人資料
正文

(2012-05-21 20:51:12) 下一個

(科福鐵)關於挨踢的網爬蟲技術(WEB  CRAWLING)


對公共論壇BBS, 除了狗狗這樣的超級或任何公司個人的情報係統每隔幾秒自動采集信息外,FBI, CIA, 國圖, 米國軍方都使用了網爬蟲(WEB CRAWLER)技術搜集各方麵信息情報。


實際原理很簡單,無非是采集方發送HTTP 網絡協議,數據源方回複,市麵有現成的開源軟件供下載。


http://en.wikipedia.org/wiki/Web_crawler



From Wikipedia, the free encyclopedia

Jump to: navigation, search



A Web crawler is a computer program that browses the World Wide Web in a methodical, automated manner or in an orderly fashion. Other terms for Web crawlers are ants, automatic indexers, bots,[1] Web spiders,[2] Web robots,[2] or—especially in the FOAF community—Web scutters.[3]


This process is called Web crawling or spidering. Many sites, in particular search engines, use spidering as a means of providing up-to-date data. Web crawlers are mainly used to create a copy of all the visited pages for later processing by a search engine that will index the downloaded pages to provide fast searches. Crawlers can also be used for automating maintenance tasks on a Web site, such as checking links or validating HTML code. Also, crawlers can be used to gather specific types of information from Web pages, such as harvesting e-mail addresses (usually for sending spam).


A Web crawler is one type of bot, or software agent. In general, it starts with a list of URLs to visit, called the seeds. As the crawler visits these URLs, it identifies all the hyperlinks in the page and adds them to the list of URLs to visit, called the crawl frontier. URLs from the frontier are recursively visited according to a set of policies.


The large volume implies that the crawler can only download limited number of the Web pages within a given time, so it needs to prioritize its downloads. The high rate of change implies that the pages might have already been updated or even deleted.


The number of possible crawlable URLs being generated by server-side software has also made it difficult for web crawlers to avoid retrieving duplicate content. Endless combinations of HTTP GET (URL-based) parameters exist, of which only a small selection will actually return unique content. For example, a simple online photo gallery may offer three options to users, as specified through HTTP GET parameters in the URL. If there exist four ways to sort images, three choices of thumbnail size, two file formats, and an option to disable user-provided content, then the same set of content can be accessed with 48 different URLs, all of which may be linked on the site. This mathematical combination creates a problem for crawlers, as they must sort through endless combinations of relatively minor scripted changes in order to retrieve unique content.


As Edwards et al. noted, "Given that the bandwidth for conducting crawls is neither infinite nor free, it is becoming essential to crawl the Web in not only a scalable, but efficient way, if some reasonable measure of quality or freshness is to be maintained."[4] A crawler must carefully choose at each step which pages to visit next.


The behavior of a Web crawler is the outcome of a combination of policies:[5]



  • a selection policy that states which pages to download,

  • a re-visit policy that states when to check for changes to the pages,

  • a politeness policy that states how to avoid overloading Web sites, and

  • a parallelization policy that states how to coordinate distributed Web crawlers.

[ 打印 ]
閱讀 ()評論 (0)
評論
目前還沒有任何評論
登錄後才可評論.