- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
制作一个个人搜索引擎(源码)(Make a personal search engine (source code))
制作一个个人搜索引擎(源码)(Make a personal search engine (source code))
Source: Anonymous (127) [2005-3-13] small font: switch to traditional Chinese
I want to collect or share to: %
Response.Buffer=True
OneFile, Search, Engine (ofSearch, v1.0)
Copyright? 000, Sixto, Luis, Santos, sixtos@
All, Rights, Reserved
Note:
This, program, is, freeware., This, program, is, NOT, in, the, Public, Domain.
You, can, freely, use, this, program, in, your, own, site.
You, cannot, re-distribute, the, code, by, any, means,
without, the, express, written, authorization, by, the, author.
Use, this, program, at, your, own, risk.
Globals --------------------------------------
----------------------------------------------
Const ValidFiles = htmltxt
Const RootFld =
Dim Matched
Dim Regex
Dim GetTitle
Dim FS
Dim rfLen
Dim RootFolder
Dim DocCount
Dim DocMatchCount
Dim MatchedCount
----------------------------------------------
Procedure:, SearchFiles ()
----------------------------------------------
Public Sub SearchFiles (FolderPath)
Dim fsFolder
Dim fsFolder2
Dim fsFile
Dim fsText
Dim FileText
Dim FileTitle
Dim FileTitleMatch
Dim MatchCount
Dim OutputLine
Get, the, starting, folder
Set fsFolder = fs.GetFolder (FolderPath)
Iterate, thru, every, file, in, the, folder
For, Each, fsFile, In, fsFolder.Files
Compare, the, current, file, extension, with, the, list, of, valid, target, files
If, InStr (1, ValidFiles, Right (fsFile.Name, 3), vBTextCompare) 0 Then
DocCount = DocCount + 1
Open, the, file, to, read, its, content
Set fsText = fsFile.OpenAsTextStream
FileText = fsText.ReadAll
Apply, the, regex, search, and, get, the, count, of, matches, found
MatchCount = Regex.Execute (FileText).Count
MatchedCount = MatchedCount + MatchCount
If MatchCount 0 Then
DocMatchCount = DocMatchCount + 1
Apply, another, regex, to, get, the, HTML, documents, title
Set FileTitleMatch = GetTitle.Execute (FileText)
If FileTitleMatch.Count 0 Then
Strip, the, title, tags
FileTitle = Trim (replace (Mid (FileTitleMatch.Ite
您可能关注的文档
- 中图法细表(Chinese drawing).doc
- 中外广告创意比较(Comparison of advertising originality between China and foreign countries).doc
- 中国黄酒品牌生存发展情况分析(Analysis of the survival and development of Chinese rice wine brands).doc
- 中大细胞习题(CUHK exercises).doc
- 中央供料系统的详细说明(Detailed description of central feeding system).doc
- 中央六部门规整公务员企业培训工资 全国检查违规津补贴(Central six departments structured civil servants, enterprises, training, wages, national inspection, illegal subsidies).doc
- 中央六部门规整公务员工资 全国检查违规津补贴(Central six departments structured civil service wages, national inspection, illegal subsidies).doc
- 中央厨房,采购,加工,配送中心(Central kitchen, purchasing, processing, distribution center).doc
- 中央气象台api(Central Weather Station, API).doc
- 中央空调为何要定期清洗(Why should central air-conditioning be cleaned regularly).doc
- 制作奶茶炸鸡汉堡(Make tea, fried chicken, hamburger).doc
- 制度建设是提高保险企业生存与发展能力的重要因素(System construction is an important factor to improve the survival and development of insurance enterprises).doc
- 再回首情归北大 过来人讲述坎坷的考研之路(Looking back on the rough road to North from PubMed).doc
- 制砖原料标砖要求1(Brick material standard brick 1).doc
- 制砖机介绍(Brick machine introduction).doc
- 制胜战略的三大敲门砖(The three knocking blocks of winning strategy).doc
- 制袋机的作用(The function of bag making machine).doc
- 制造业(仓库管理和供应链)英语词汇(Manufacturing (warehouse management and supply chain) English Vocabulary).doc
- 制作集成sp2的windows xp 安装光盘(Make integrated SP2 Windows XP installation CD).doc
- 制造业人机物成本控制(Man machine cost control in manufacturing industry).doc
文档评论(0)