仿酷狗的音乐搜软件的开发与测试
仿酷狗的音乐搜索软件的开发与测试
摘 要
当前,面对浩瀚的网络资源,搜索引擎为所有网上冲浪的用户提供了一个入口,毫不夸张的说,所有的用户都可以搜索引擎到达自己想去的网上任何一个地方。因此它也成为除了电子邮件以外人们使用最多的网上服务。Web音乐搜索软件是采用Java语言开发的简易的互联网音乐搜索引擎,它集网络爬虫(采用java内置的多线程及Socket技术)和基于B/S结构的Web查询(Struts框架)为一体的搜索软件。该系统能完成对互联网的音乐信息的采集、分析、分类、保存和查询等功能经过测试与分析说明本系统具有一定的实用价值。
关键字:音乐;搜索;网络爬虫;Socket技术;Struts框架;多线程Design and Implementation of Web Music Search Software
Abstract
At present, in the vast network resource, search engine for all Internet surfing users provides the one entrance. No exaggeration to say that all users can be reached any one place on the Internet by the aid of search engines. So it has become the most using online services for people except E-mail. However, with the rapid development of the Internet, the contradictions between massive information and obtaining the capacity of required information is obvious day by day. Searching for information in vast network resources is like looking for needles in a haystack, but search engine just solves this problem.
The software is about web music search. It uses java to develop a simple Internet music search engine, and also gathers the net-reptile (intra-builder java multi-thread and socket technology) and web search based on B/S construction (struts framework) as a whole search software. It can achieve the collection, analysis, classification, storage and search of Internet music information. Through the test and analysis, it shows this system is stable, reliable, and has some practical values.
Key words: Music; Search Software; Crawl; Socket Technology; Struts Structure; Multi-thread
目 录
论文总页数:21页
1 引 言1
1.1 课题背景1
1.2 国内外研究现状1
1.3 本课题研究的意义2
1.4 本文的主要工作2
2 Web音乐搜索软件的需求分析2
2.1 搜集信息2
2.2 整理信息2
2.3 接受查询3
3 Web音乐搜索软件的设计3
3.1 系统总体流程3
3.2 系统部件介绍4
4 Web音乐搜索软件的具体实现5
4.1 数据设计5
4.2 网络爬虫设计5
4.2.1 遍历算法6
4.2.2 模拟浏览器8
4.2.3 正则表达式9
4.2.4 数据分析12
4.3 采用java多线程技术13
4.4 web查询端14
4.4.1 Struts框架14
4.4.2 Struts包内容14
4.4.3 Struts体系结构15
5 运行测试与分析17
5.1 软件试运行17
5.2 软件分析19
结 论19
参考文献19
致