Design and Research of Network Spider
- Author
- ZhaoZuoLi
- Advisor
- ZhangYang , ShangZunYi
- School
- University of Electronic Science and Technology
- Major
- Software Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 40
- Citations
- 0
Abstract
Network resources are very rich, but how to effectively search for information is adifficult thing. Create a search engine is the best way to solve this problem.Multi-threaded web crawler program is the first algorithm in accordance with thewidth from the specified Web page to parse, search, and to crawl each URL to search,save and new entrance on the Internet constantly crawling the URL is automaticallyRunthe daemon.Web crawler application socket socket, regular expression, the HTTP protocol,windows network programming and other related technology, the Web crawler is a runin the background to the configuration file as the initial URL, down to crawl to thebreadth-first algorithm, save target URL of the network program in C++language asthe implementation language, and in VC6.0debugging by ordinary users be able toperform web search task.This thesis first details the system architecture of the Internet-based search engines,and then provides details on how to design and implement search engine search engine-Web crawler. Of the subject completed the following work:1. Complete analysis of Web crawler SPIDER architecture;2. To complete the design of the main function module;3. My SQL database;4. URL parsing queue management;5. To achieve the design of the individual function module;6. Carried out the testing of the system of network reptiles.In addition, in the Design and Implementation of Web crawler chapters in addition tothe detailed elaboration of the technical core combined with the realization of themulti-threaded web crawler code to illustrate, and easy to understand.
Table of contents
Summary 5-6
ABSTRACT 6-7
directory 7-10
Chapter 1 Overview 10-15 <br / > 1.1 Introduction research background and significance 10-11
1.2 web crawler 11-12
1.3 Web crawler status of domestic and foreign research 12-13 <br / > 1.4 research 13
1.4.1 key issues addressed in this topic main contents of 13
1.4.2 herein 13
1.5 papers Chapter arrangements 13-15
Chapter 2 introduces the relevant technologies 15-28
2.1 Web crawler About 15-17
2.1.1 Spider 's The concept 15
2.1.2 Web crawler principle 15-16
2.1.3 Web crawler search strategy 16-17
2.2 C # thread 17-21
2.2.1 thread Overview 17-18
2.2.2 C # threading model 18
2.2.3 to create a thread 18 -19
2.2.4 C # thread lifecycle 19-20
2.2.5 multi- thread synchronization 20
2.2.6 URL eliminate heavy 20-21
eliminate heavy significance 2.2.6.1 URL 20
2.2.6.2 Web crawler repository URL to re- design 20-21
2.2. based on the order of 6.3 disk storage 21
2.3 URL class to access the network 21-22
2.4 crawling strategy analysis 22-26
2.4.1 width or depth-first search strategy 22
2.4.2 focused search strategy 22-23
2.4.3 content-based evaluation of search strategies 23
2.4.4 based on the evaluation of the link structure of the search strategy 23-25 ??
2.4.5 focus on the consolidation of learning search 25
2.4.6 Context diagram focusing on search 25-26
2.5 regex 26-27
2.5.1 regex application analysis 26
2.5.2 regular expressions yuan character analysis 26-27
2.6 Summary 27-28
Chapter 3 system Requirements analysis and module design 28-31
3.1 system Requirements analysis 28
3.2 SPIDER architecture 28-29
3.3 the main function module ( class ) is designed 29-30
3.4 SPIDER work process 30
3.5 Summary 30-31
Chapter 4, system Analysis and Design 31-37
4.1 SPIDER structural analysis 31 - 32
4.2 crawling strategy analysis 32-34
4.2.1 multi-threaded crawler model analysis 33
4.2.2 reptiles cluster model analysis 33 - 34
4.3 URL extraction, analysis and preservation 34-36
4.3.1 URL extraction 34-35
4.3.2 URL parsing 35
4.3.3 URL save 35-36
4.4 Summary 36-37
Chapter 5 system implementation 37-50
5.1 implementation tools achieve 37
5.2 MYSQL database 37-38
5.3 URL parsing 38-39
5.4 URL queue management 39
5.4.1 URL eliminate heavy processing 39
5.4.2 URL queue maintenance design 39
5.5 SOCKET Create () function and implementation 39-41
5.6 CCONNECT () function of the design and implementation 41-43
5.7 CCLOSE () function module design and implementation 43-44
5.8 CSEND ( ) function module design and implementation of design and implementation 44-45
5.9 CRECV () function module achieve 45-46
5.10 major classes 46 -49
5.11 Summary 49-50
Chapter 6 system Test 50-59
6.1 system performance testing theoretical foundation 50-51
6.2 detailed testing process 51-54
6.3 research 54-59
Chapter 7 conclusions 59-61
Thanks 61-62
References 62-64
Related dissertations
- Research and Application of Key Technology for Video Uploading Oriented Mobile Internet Application
- Research and Parallel Implementation of Motion Estimation Used in Video Encoding
- Research on Swarm Cooperation Mission Control Method of AUV Terrain Survey
- Research and Implementation of Distributed Network Search Engine
- Design and implementation of focused crawler based on breadth priority
- Research and Implementation of Thevertical Search Engine for Electronic Information
- Software Design of Video Surveillance Server Based on Tilera Multi-Core Processor
- Design and Implementation of the Campus SMC Query System
- Design of the Harmful Information Retrieval System in Campus-network
- Application and Research for Wavelet Mutation-based Binary Particle Swarm Strategy
- Loudspeaker Spider Shape Design
- The Design and Implementation for Constructing the Educational Full-text Research with Lucene
- Based on the Class Arachnida Arthropod Animal Medicinal Value and Antibacterial Activity Investigation
- Safety Evaluation of Insecticides Applied in Paddy Field to Spiders
- Study on Biology of Euproctis Pseudoconspersa in Dabie Mountain and its Possible Biological Control Agents
- Studies on the Spider and Ecology of the Main Species in Tea Garden of Hunan Province
- Study on the Factors Affecting Spider Abundance and Conservation Strategies of Spiders in Vegetable Fields
- Community Structure and the Relationship between the Spiders and Environment in Agroforestry System in Beijing
- 10kV Distribution Network Reliability Evaluation and Research on Anji
- Study on the Community Structure and Diversity of Piders in Alfalfa Fields and Natural Grassland