tse

所属分类:搜索引擎
开发工具:Visual C++
文件大小:177KB
下载次数:30
上传日期:2009-04-25 12:54:12
上 传 者summerhit
说明:  这是一个简单的小心搜索引擎的源码,欢迎下载
(This is a simple search engine source code carefully, please download)

文件列表:
tse.代码\CStandard.IAB (69632, 2009-03-01)
tse.代码\CStandard.IAD (1008, 2009-03-01)
tse.代码\CStandard.IMB (20480, 2009-03-01)
tse.代码\CStandard.IMD (528, 2009-03-01)
tse.代码\CStandard.PFI (204, 2009-03-02)
tse.代码\CStandard.PO (776, 2009-03-02)
tse.代码\CStandard.PR (16424, 2009-03-01)
tse.代码\CStandard.PRI (103736, 2009-03-01)
tse.代码\CStandard.PS (174060, 2009-03-01)
tse.代码\CStandard.WK3 (10814, 2009-03-02)
tse.代码\tse\Clean.sh (329, 2004-12-10)
tse.代码\tse\CommonDef.h (899, 2004-12-10)
tse.代码\tse\Crawl.cpp (36697, 2004-12-10)
tse.代码\tse\Crawl.h (2038, 2004-12-10)
tse.代码\tse\DatabaseEngine.cpp (138, 2004-12-10)
tse.代码\tse\DatabaseEngine.h (301, 2004-12-10)
tse.代码\tse\DataEngine.cpp (145, 2004-12-10)
tse.代码\tse\DataEngine.h (505, 2004-12-10)
tse.代码\tse\Design-doc.txt (249, 2004-12-10)
tse.代码\tse\FileEngine.cpp (558, 2004-12-10)
tse.代码\tse\FileEngine.h (553, 2004-12-10)
tse.代码\tse\hlink\hlink.h (598, 2004-12-10)
tse.代码\tse\hlink\hlink.l (8277, 2004-12-10)
tse.代码\tse\hlink\hlink.l.0 (7541, 2004-12-10)
tse.代码\tse\hlink\lex.hlink.c (352715, 2004-12-10)
tse.代码\tse\hlink\Makefile (241, 2004-12-10)
tse.代码\tse\Http.cpp (21529, 2004-12-10)
tse.代码\tse\Http.h (567, 2004-12-10)
tse.代码\tse\include\hlink.h (598, 2004-12-10)
tse.代码\tse\include\list.h (5882, 2004-12-10)
tse.代码\tse\include\misc.h (840, 2004-12-10)
tse.代码\tse\include\stack.h (1027, 2004-12-10)
tse.代码\tse\include\uri.h (1586, 2004-12-10)
tse.代码\tse\IsamFile.cpp (2834, 2004-12-10)
tse.代码\tse\IsamFile.h (527, 2004-12-10)
tse.代码\tse\lib\list.h (5882, 2004-12-10)
tse.代码\tse\lib\Makefile (196, 2004-12-10)
tse.代码\tse\lib\misc.c (226, 2004-12-10)
tse.代码\tse\lib\misc.h (840, 2004-12-10)
tse.代码\tse\lib\stack.c (4347, 2004-12-10)
... ...

TSE(Tiny Search Engine) ======================= (Temporary) Web home: http://162.105.80.44/~yhf/Realcourse/ TSE is free utility for non-interactive download of files from the Web. It supports HTTP. According to query word or url, it retrieve results from crawled pages. It can follow links in HTML pages and create output files in Tianwang (http://e.pku.edu.cn/) format or ISAM format files. Additionally, it provies link structures which can be used to rebuild the web frame. --------------------------- Main functions in the TSE: 1) normal crawling, named SE, e.g: crawling all pages in PKU scope. and retrieve results from crawled pages according to query word or url, 2) crawling images and corresponding pages, named ImgSE. --------------------------- INSTALL: 1) execute "tar xvfz tse.XXX.gz" --------------------------- Before running the program, note Note: The program is default for normal crawling (SE). For ImgSE, you should: 1. change codes with the following requirements, 1) In "Page.cpp" file, find two same functions "CPage::IsFilterLink(string plink)" One is for ImgSE whose urls must include "tupian", "photo", "ttjstk", etc. the other is for normal crawling. For ImgSE, remember to comment the paragraph and choose right "CPage::IsFilterLink(string plink)". For SE, remember to open the paragraph and choose righ "CPage::IsFilterLink(string plink)". 2) In Http.cpp file i. find "if( iPage.m_sContentType.find("image") != string::npos )" Comment the right paragraph. 3) In Crawl.cpp file, i. "if( iPage.m_sContentType != "text/html" Comment the right paragraph. ii. find "if(file_length < 40)" Choose right one line. iii. find "iMD5.GenerateMD5( (unsigned char*)iPage.m_sContent.c_str(), iPage.m_sContent.length() )" Comment the right paragraph. iv. find "if (iUrl.IsImageUrl(strUrl))" Comment the right paragraph. 2.sh Clean; (Note not remove link4History.url, you should commnet "rm -f link4History.url" line first) secondly use "link4History.url" as a seed file. "link4History" is produced while normal crawling (SE). --------------------------- EXECUTION: execute "make clean; sh Clean;make". 1) for normal crawling and retrieving ./Tse -c tse_seed.img According to query word or url, retrieve results from crawled pages ./Tse -s 2) for ImgSE ./Tse -c tse_seed.img After moving Tianwang.raw.* data to secure place, execute ./Tse -c link4History.url --------------------------- Detail functions: 1) suporting multithreads crawling pages 2) persistent HTTP connection 3) DNS cache 4) IP block 5) filter unreachable hosts 6) parsing hyperlinks from crawled pages 7) recursively crawling pages h) Outputing Tianwang format or ISAM format files --------------------------- Files in the package Tse --- Tse execute file tse_unreachHost.list --- unreachable hosts according to PKU IP block tse_seed.pku --- PKU seeds tse_ipblock --- PKU IP block ... Directories in the package hlink,include,lib,stack,uri directories --- Parse links from a page --------------------------- Please report bugs in TSE to MAINTAINERS: YAN Hongfei * Created: YAN Hongfei, Network lab of Peking University. * Created: July 15 2003. version 0.1.1 * # Can crawl web pages with a process * Updated: Aug 20 2003. version 1.0.0 !!!! * # Can crawl web pages with multithreads * Updated: Nov 08 2003. version 1.0.1 * # more classes in the codes * Updated: Nov 16 2003. version 1.1.0 * # integrate a new version linkparser provided by XIE Han * # according to all MD5 values of pages content, * for all the pages not seen before, store a new page * Updated: Nov 21 2003. version 1.1.1 * # record all duplicate urls in terms of content MD5

近期下载者

相关文件


收藏者