public class SimpleHTMLScrapingConsumer extends HTMLScrapingSiteSpecificConsumer
Constructor and Description |
---|
SimpleHTMLScrapingConsumer(String linkContains,
String select) |
Modifier and Type | Method and Description |
---|---|
boolean |
canConsume(URL url)
Determine whether the given URL can be handled by this consumer.
|
String |
cssSelect() |
consume
public SimpleHTMLScrapingConsumer(String linkContains, String select)
linkContains
- the link should contain thisselect
- the css selector for the imgpublic boolean canConsume(URL url)
SiteSpecificConsumer
url
- the url to testpublic String cssSelect()
cssSelect
in class HTMLScrapingSiteSpecificConsumer