购物比价平台的设计与实现

3.0 闻远设计 2024-03-10 108 10 14.89KB 4 页 免费
侵权投诉
购物比价平台的设计与实现
    The design and implementation of the shopping price platform abstract
    This paper makes a brief analysis on the current social phenomenon and promoteInternet online 
shopping development, the significance of the research on the currentbusiness  platform  to  do  the  
analysis,  business  platform  for  commodity  informationcapture tools to do a simple introduction, 
and shows the research using Python to obtaindifferent  shopping  platform  product  information,  
introduced  the  use  of  Scrapy  webcapture the framework based on Python to capture and analyze the
different businessplatform source technology, access to product information from the source code, 
andwith the help of the python development framework of web Flask and My SQL databaseshow will 
get to the letter to the user method. Then the design and implementation ofthe system are introduced 
and analyzed. Finally, the test and results of the system aredisplayed. The system shows the 
commodity information of different platforms in theform of Web site, so that users can be more 
convenient to use and operate, and makemore correct choices.
  Key Words:    Commodity information;Grab;Python;Scrapy;Flask
    1. 绪论
1.1 、 背景和研究意义。
    随着互联网的不断发展,快递业不断地优胜略汰,和各大电商平台功能日益完善,网购逐
渐变得越来越便捷安全,而且正在成为一种时尚。在当今社会,时间无疑是人们最重要的资
源,无论是工作,休息陪伴家人,大多数人都不会愿意把这种无价的资源浪费在对着手机或者
电脑屏幕选择和比较商品上面。因此,对于不同电商平台,便捷、迅速的选择比较途径被越来
越多的人所青睐。
  1.2 、 论文研究主要内容。
    本文主要对不同电商平台商品数据的分析和抓取,以网站的形式展示给用户,为网购用户
提供清晰的商品信息比较,以便于用户在最短的时间内,准确的选择性价比更高,更加适合自
己的商品。
    在接下来的第二章,第一节,介绍了本论文研究的主要任务即功能需求,第二节主要介绍
了开发环境和软件,第三节介绍了本论文涉及的关键技术。
    在第三章,主要介绍了对论文研究内容的系统设计,主要包括功能模块设计,数据库设
计,页面设计,这三个内容分我将分为三节进行介绍。
    第四章是系统的实现过程,也是最主要的部分,分别包括环境的搭建,数据库的相关内
 容,和 scrapy 爬取数据的过程,以及数据的存储和显示,分别在五个小节详细介绍。
    最后一章是对本次论文的总结和展望,以及我在学习过程中我查询过的资料和来源,最后
一节是我对大学四年以及这次论文研究的总结,感谢这四年遇到的老师和同学。
  2. 项目准备。
2.1 、 明确功能需求。
    在项目中我们首先要考虑的是我们要做什么,我们要获取不同电商平台的商品数据并且将
这些数据保存在数据库中,然后以网站的形式将这些数据展示在网页上。很显然要展示给用户
 来自不同的电商平台的商品信息,就需要我们去获取,所以我们要学习网络爬虫的技术,而
python 已经有很多定义好的模块可以给我们使用,这些经过无数前辈检验过的东西让我们
可以不用考虑爬虫底层的细节问题而可以更加专注于我们需要获取的数据并且有更多的时间去
 做后处理工作。在我的系统种,我选择了 python   开发的 scrapy   作为项目开发的 web 抓取
和提取数据的框架。在爬取淘宝等网站的数据时,据经,我们爬取数据的行为常常会被
器检测到并且们会取一些手对我们的爬虫作进行屏。因此我们需要将我们的爬虫
伪装浏览器浏览操作,这就需要我们掌握浏览器伪装的技术。在我们网站上爬取数据
时,我们是过分析网页源码规律,获取面的数据做到的,我使用正则表达式和
XPath 表达式来对网页的源代码进行分析和获取。当我们获取到数据,我们需要将获取的数据
 存储来保存在文件中,也可以存在数据库中,我在项目中选择 mysql 数据库。页面的显示
 很多优框架可以用,我们可以任意选一种,在系统中,我选择使flask 框架
    【由于本篇文章为本科论文,如需全文请点击底部下载全文链接】
    2.2、开发环境和软件.
    2.3、关键技术介绍.
    2.3.1、网络爬虫
    2.3.2python 语言
    2.3.3scrapy 介绍
    2.3.4爬虫屏蔽之浏览器伪装技术
    2.3.5XPath 表达
    2.3.6scrapy-spl ash.
    2.3.7、正则表达
    2.3.8flask 介绍
    2.3.9  MVC 设计模式
    2.3.10python 的模板引擎 jinja
    3. 系统设计
    3.1、功能模块设计.
    3.2、数据库设计.
    3.3、页面设计.
    4. 系统实现
    4.1、搭建开发环境.
    4.1.1、安python 环境
    4.1.2、安装集成开发环境 PyCharm. .
    4.1.3、安scrapy 模块
    4.1.4、安flask
    4.2建数据库.
    4.2.1、安数据库驱动

标签: #设计

摘要:

购物比价平台的设计与实现  Thedesignandimplementationoftheshoppingpriceplatformabstract  This paper makes a brief analysis on the current social phenomenon and promoteInternet online shopping development, the significance of the research on the currentbusiness  platform  to  do  the  analysis,  business  platfor...

展开>> 收起<<
购物比价平台的设计与实现.docx

共4页,预览2页

还剩页未读, 继续阅读

相关推荐

作者:闻远设计 分类:其它行业资料 价格:免费 属性:4 页 大小:14.89KB 格式:DOCX 时间:2024-03-10

开通VIP享超值会员特权

  • 多端同步记录
  • 高速下载文档
  • 免费文档工具
  • 分享文档赚钱
  • 每日登录抽奖
  • 优质衍生服务
/ 4
客服
关注