基于10000网页python搭建搜索引擎课程设计

上传者: 30007953 | 上传时间: 2021-08-10 22:38:26 | 文件大小: 126KB | 文件类型: RAR
10000网页简单上手,代码和配置环境全部写好,傻瓜式操作。
执行文件顺序是
1.Spider.py进行爬取网页并分析
2.index.py生成倒排索引,idf文件
3.app.py运行搜索引擎
4.在默认浏览器输入 http://localhost:8080/ 进行检索

若要使用数据库
1.writeDB.py写倒排索引与idf(时间较长)
2.可以在summary.py切换from DB_search import s使用数据库

注意:
还需要停用词是stopwords.txt

文件下载

资源详情

[{"title":"( 25 个子文件 126KB ) 基于10000网页python搭建搜索引擎课程设计","children":[{"title":"小型搜索引擎程序","children":[{"title":"环境配置文档.txt <span style='color:#111;'> 581B </span>","children":null,"spread":false},{"title":"Spider.py <span style='color:#111;'> 5.06KB </span>","children":null,"spread":false},{"title":"writeDB.py <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false},{"title":"templates","children":[{"title":"baidu.html <span style='color:#111;'> 714B </span>","children":null,"spread":false},{"title":"search.html <span style='color:#111;'> 3.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"top_k.py <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"summary.py <span style='color:#111;'> 4.64KB </span>","children":null,"spread":false},{"title":"static","children":[{"title":"images","children":[{"title":"2.png <span style='color:#111;'> 83.59KB </span>","children":null,"spread":false},{"title":"icon_book.png <span style='color:#111;'> 2.23KB </span>","children":null,"spread":false},{"title":"1.png <span style='color:#111;'> 5.74KB </span>","children":null,"spread":false},{"title":"baidu.jpg <span style='color:#111;'> 7.69KB </span>","children":null,"spread":false},{"title":"2.jpg <span style='color:#111;'> 4.13KB </span>","children":null,"spread":false}],"spread":true},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"baidu.html <span style='color:#111;'> 661B </span>","children":null,"spread":false},{"title":"css","children":[{"title":"baidu.css <span style='color:#111;'> 628B </span>","children":null,"spread":false}],"spread":true},{"title":"search.html <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"__pycache__","children":[{"title":"summary.cpython-37.pyc <span style='color:#111;'> 4.47KB </span>","children":null,"spread":false},{"title":"DB_search.cpython-37.pyc <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false},{"title":"search.cpython-37.pyc <span style='color:#111;'> 2.34KB </span>","children":null,"spread":false},{"title":"writeDB.cpython-37.pyc <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"top_k.cpython-37.pyc <span style='color:#111;'> 880B </span>","children":null,"spread":false}],"spread":true},{"title":"index.py <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false},{"title":"app.py <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"DB_search.py <span style='color:#111;'> 3.82KB </span>","children":null,"spread":false},{"title":"search.py <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • weixin_44689695 :
    感谢大佬。
    2020-12-26

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明