网络爬虫的研究与设计
2018-12-17郑定超麻少秋
郑定超 麻少秋
摘要:针对当前网络上信息呈爆炸式增长的态势,我们如何更好更快地获取有效信息就成了一个问题。我们获得信息最主要的途径就是通过搜索引擎,网络爬虫在整个搜索引擎中起着最为重要的作用。研究网络爬虫的功能和结构、设计并实现一个基于广度优先爬行策略的带URL消重功能的网络爬虫、对该网络爬虫进行测试验证爬行效果和对设计的三种消重算法的性能进行比较研究,提高爬虫的爬行效率;最后,采用广度优先的爬行策略,验证了该爬虫的爬行效果。
关键词:网络爬虫;广度优先;搜索引擎
中图分类号:TP391 文献标识码:A 文章编号:1009-3044(2018)25-0043-03
Research and Design of Web Crawler based on Breadth Strategy
ZHENG Ding-chao,MA Shao-qiu
(Zhejiang Oriental Vocational and Technical College, Wenzhou 325000,China)
Abstract:In view of the explosive growth of information on the Internet, how to get effective information faster and faster has become a problem. The most important way for us to get information is through search engines, and web crawlers play the most important role in the whole search engine. This paper studies the function and structure of the web crawler, designs and implements a network crawler with URL weight elimination function based on the breadth first crawling strategy, tests the crawl effect on the web crawler, and compares the performance of the three design algorithms to improve the crawling efficiency. Finally, the breadth priority is adopted. The crawling strategy verifies the crawling effect of the crawler.
Key words:web crawler; breadth priority; search engine
现在网络上信息是以爆炸式的速度在增长,怎么样更多、更快、更好地获得这些网络信息资源就成了一个问题。在如此海量的信息源中,我們获得信息最主要的途径就是通过搜索引擎,而基于网络爬虫(即网络蜘蛛)的搜索引擎(即第四代搜索引擎)已经是当今搜索引擎技术和Web信息挖掘中的研究热点和难点。
网络爬虫是搜索引擎系统所有模块当中最为核心的模块之一。作为搜索引擎系统最核心的模块,网络爬虫在整个搜索引擎中起着最为重要的作用,因为它是整个搜索引擎的数据来源,没有它,搜索引擎的所有后继工作都将停滞下来。而网络爬虫设计的好与坏就直接决定了整个引擎系统的内容丰富与否,还有信息能否得到及时的更新,而这也直接决定了搜索引擎的成败。……
