public class Scraper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
Constructor and Description |
---|
Scraper()
Instantiates the scraper.
|
Modifier and Type | Method and Description |
---|---|
ScrapingSessionNotifiable |
getScrapingSessionNotifiable()
Gets the object the scraper will use to notify its progress of.
|
void |
resetScrapingSessionNotifiable()
Nulls out the
ScrapingSessionNotifiable . |
void |
scrape()
Scrapes using the current scraping session.
|
protected void |
setScrapingSession(ScrapingSession scrapingSession)
Sets the
ScrapingSession this scraper scrapes data for. |
void |
setScrapingSessionNotifiable(ScrapingSessionNotifiable scrapingSessionNotifiable)
Sets the object the scraper will use to notify its progress of.
|
protected void setScrapingSession(ScrapingSession scrapingSession)
ScrapingSession
this scraper scrapes data for.scrapingSession
- The ScrapingSession
.public void scrape()
@NotNull public ScrapingSessionNotifiable getScrapingSessionNotifiable()
public void setScrapingSessionNotifiable(@Nullable ScrapingSessionNotifiable scrapingSessionNotifiable)
scrapingSessionNotifiable
- The object.public void resetScrapingSessionNotifiable()
ScrapingSessionNotifiable
.