简体   繁体   English

我将如何创建Java网页搜索工具

[英]How would I go about creating a Java webpage search tool

I want to search webpages with a Java tool that can tell me if it finds a string(s) I've asked it to look for. 我想使用Java工具搜索网页,该工具可以告诉我是否找到了我要查找的字符串。 The thing is, the webpages I want to search have text in hover boxes that needs searching too. 问题是,我要搜索的网页的悬停框中也有文本,也需要搜索。

I want it to automatically search pages (they have page numbers in the url) and give me a message or something that tells me the location of where the string(s) was/were found, and continue searching. 我希望它自动搜索页面(URL中有页面编号),并给我一条消息或告诉我找到字符串的位置的信息,然后继续搜索。

Any help would be appreciated! 任何帮助,将不胜感激!

您可以看一下浏览器自动程序Selenium

Lucene may get you close to what you're looking for. Lucene可能会让您接近要寻找的东西。 It's just a search tool, but it might be customizable to your extent. 它只是一个搜索工具,但可以根据您的程度进行自定义。 Otherwise you'll probably have to write something like that. 否则,您可能必须编写类似的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM