All Downloads are FREE. Search and download functionalities are using the official Maven repository.

us.codecraft.webmagic.selector.NodeSelector Maven / Gradle / Ivy

The newest version!
package us.codecraft.webmagic.selector;

import org.w3c.dom.Node;

import java.util.List;

/**
 * Selector(extractor) for html node.
* * @author hooy
* @since 0.8.0 */ public interface NodeSelector { /** * Extract single result in text.
* If there are more than one result, only the first will be chosen. * * @param node node * @return result */ String select(Node node); /** * Extract all results in text.
* * @param node node * @return results */ List selectList(Node node); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy