searchengine.java

来自「一个用java语言编写的网络爬虫程序」· Java 代码 · 共 34 行

JAVA
34
字号
/* * WebSPHINX web crawling toolkit * Copyright (C) 1998,1999 Carnegie Mellon University  *  * This library is free software; you can redistribute it * and/or modify it under the terms of the GNU Library * General Public License as published by the Free Software  * Foundation, version 2. * * WebSPHINX homepage: http://www.cs.cmu.edu/~rcm/websphinx/ */package websphinx.searchengine;import websphinx.*;import java.net.URL;/** * Abstract representation of a search engine. */public interface SearchEngine extends Classifier {    /**     * Make a query URL for this search engine.     * @param keywords list of keywords, separated by spaces     * @return URL that submits the keywords to this search engine     */    public URL makeQuery (String keywords);    /**     * Get number of results per page for this search engine.     * @return typical number of results per page     */    public int getResultsPerPage ();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?