编号:毕业设计说明书题目:在线产品即时比价系统学院:计算机科学与工程学院专业:计算机科学与技术学生姓名:张水荣学号:1001110730指导教师单位:计算机科学与工程学院姓名:张敬伟职称:讲师题目类型:理论研究实验研究工程设计工程技术研究软件开发2014年5月31日桂林电子科技大学毕业设计论文(报告)用纸摘要近些年来电子商务行业获得了飞速的发展,电子商务改变了人们的购物习惯,越来越多的人倾向于在网上购买商品。然而,用户如何在众多的电子商务网站中找到性价比最高的商品?为了解决以上问题,即时比价系统就诞生了,即时比价系统通过收录各大电商网站的商品信息,实现了即时比价的功能。用户可以通过比价系统实时获得各大电商网站中的产品价格信息,而不用在多个电商的门户网站上来回切换,同时比价网站也提供给了用户平时不会关注的冷门电商网站的商品信息。本系统的功能是为用户爬取各大电商网站的商品信息,并将这些数据同步呈现给用户。本系统分为3个层次:业务逻辑层、数据爬取层、视图层。数据爬取层是整个个系统的核心,使用Jsoup文本解析库来对HTML文本进行解析,以获取其中的商品信息,再将获得的商品信息以对象的形式保存到一个列表中。业务逻辑层是系统中的难点,其中使用了字符串相似度计算算法来取得两个名称相似或相同的商品,才能更好地实现对商品价格的对比功能。本系统非常具有实用性,也有高度的可拓展性,可以很便捷地增加数据源。关键词:电子商务;比价系统;数据爬取桂林电子科技大学毕业设计论文(报告)用纸AbstractRecentyears,withtherapiddevelopment,people’sshoppinghabitshaveabigchange,andonlineshoppingarebeingpracticedbymoreandmorewebusers.However,howcantheusersfindthehighperformance-priceratiogoodsfromsomanye-commercesites?Inordertosolvethisproblem,price-comparisonswasborn.Price-comparisonsinordertocomparepricesformdifferente-commercesitesimmediately,itrecordstheproductformdifferente-commercesites.Userscanfindthepriceofgoodsfrommorethanonesiteintheprice-comparisons,ratherthaninanumberofwebsitesswitchbackandforth.Atthesametimeprice-comparisonsalsoprovidetheusersinformationofgoodsfromwebsitesthatareunpopular.Thefunctionofthesystemistocrawltheinformationofgoodsfromwebsitesforusers,andsynchronizethedatapresentedtotheuser.Thesystemisdividedintothreelayers:thebusinesslogiclayer,datalayercrawlingandviewlayer.Datacrawlinglayeristhecoreofthesystem,andusingJsouptextparsinglibraryforparsingHTMLtextinordertoobtaintheinformationofcommodities,andsavingtheinformationasaObjectintoaList.Thebusinesslogiclayeristhedifficultyofthesystem.Togetthesimilarityorsameproductandimplementthepricecomparedfunction,thesystemusestheStringsimilaritycalculationalgorithm.Thesystemisverypractical,andhasahighexpansibility.It’sveryconvenienttoaddadatasource.Keywords:e-commerce;price-comparisons;data-crawling桂林电子科技大学毕业设计论文(报告)用纸目录1绪言....................................................................................................11.1课题背景.............................................................................................................11.2课题研究的意义.................................................................................................11.2.1课题的现实意义.................................................................................................11.2.2课题的学习意义.................................................................................................11.3国内外概况.........................................................................................................11.3.1比价系统国内外发展概况.................................................................................11.3.2HTML解析国内外发展概况.............................................................................21.4课题主要内容.....................................................................................................31.4.1课题任务.............................................................................................................31.4.2毕设主要内容.....................................................................................................32系统设计方案....................................................................................42.1两种系统设计方案.............................................................................................42.1.1方案1数据库法................................................................................................42.1.2方案2即时爬取法............................................................................................52.2方案选择.............................................................................................................62.3开发技术与开发环境.........................................................................................62.3.1JSP技术..............................................................................................................62.3.2HTML解析技术Jsoup介绍..............................................................................72.3.3系统开发环境.....................................................................................................73系统总体设计....................................................................................83.1系统总体架构.....................................................................................................83.2每层简要设计.....................................................................................................94系统详细设计与实现......................................................................114.1系统功能简介....................................................................................................114.2数据爬取层设计与实现....................................................................................114.2.1爬取商品列表....................................................................................................114.2.2爬取商品基本信息...........................................................................................134.2.3爬取分页相关信息.........................................