I基于Python的手机舆情系统设计与实现摘要系统主要就是针对手机行业文章进行抓取并分析统计,根据用户定义关键词在数据库中全文搜索匹配相应文章,然后给用户进行展示,为用户提供便利。系统利用Pythonurllib对权威手机资讯网站进行网页抓取,然后用Pythonre包和正则表达式在网页中匹配到相关数据,再用Pythonw3lib.html去掉页面中臃肿的html标签。进行网页提纯,并利用MySQL进行存储。系统后台运用Pythonflask进行开发实现,前端则运用html、css、javascript、jquery进行开发并实现简单的页面交互。利用Python和Sublim工具对系统的页面和服务器进程编程和部署,系统主要是服务器端入手建立基本的前后调一体化流程。系统主要有自定义频道、自定义栏目(同时设置栏目关键词)、查看更多等功能,用户在栏目中查看根据关键词匹配到的文章列表。关键词:舆情手机资讯TheDesignAndImplementationOfMobilePublicOpinionSystemBasedOnPythonAbstractSystemismainlyaimedatthemobilephoneindustryarticlestograbandanalysisofstatistics,basedonuser-definedkeywordsfull-textsearchmatchingcorrespondingIIarticlesinthedatabase,andthentouserstodisplay,provideconveniencefortheuser.SystemUSESPythonurllibcellphoneinformationtowebsitesforauthoritytograb,andthenusePythonrepackageandregularexpressionmatchingtotherelevantdatainthewebpage,thenusePythonw3lib.ThebloatedHTMLtagsinHTMLtoremovepageforwebdatarefinement,anddepositedintheMySQLdatabaseforstorage.SystemsusePythonflaskframeworkfordevelopmentbackground,frontendusesHTML,CSS,javascript,jqueryinteractiontodevelopandimplementasimplepage.UsingPythonandSublimtoolspageonthesystemandtheserverprocessprogramminganddeployment,beforeandafterthesystemismainlytheserversideofthebasicintegrationprocess.Channelsystemmainlyincludecustom,customcolumns(atthesametimesetupkeywords),readmore,andotherfunctions,usersinthesectionviewbasedonkeywordmatchingtothelistofarticles.Keywords:PublicopinionPhoneinformationIII目录前言..................................................1第1章课题研究背景与价值................................2第1.1节选题的意义与价值.............................2第1.2节研究综述.....................................3第1.3节课题的研究意义与目的.........................3第1.4节研究范围与内容...............................4第2章手机舆情系统技术的概况............................7第2.1节系统开发环境.................................7第2.2节系统开发技术.................................8第3章系统数据采集与存储................................10第3.1节系统数据的采集..............................10第3.2节系统数据的存储..............................11第4章系统功能设计与实现................................16第4.1节用户登录....................................16第4.2节自定义频道..................................18第4.3节自定义栏目..................................20第4.4节爬虫设计与实现..............................24第4.5节系统数据库结构..............................24第5章系统测试..........................................27第5.1节系统测试目的与意义..........................27第5.2节测试过程....................................27第5.3节其他错误....................................29结论.................................................32附录.................................................34参考文献.................................................35致谢.................................................37IV1前言伴随着计算机技术,通信技术的发展,网络的规模也越来越大,互联网多元素也随之不断的添加。随着互联网的快速发展,网络已经是成为了一种新的信...