Reputation: 93
Is it possible to pass params to WebCrawler ?
For example I want to pass new rule for WebCrawler.shouldVisit(WebURL url)
method in runtime or set some field in my WebCrawler.
Is it possible?
Upvotes: 3
Views: 374
Reputation: 93
I found the answer. You can use method CrawlController.setCustomData(Object customData) to store data and than you can fetch your data from crawler by using WebCrawler.getMyController().getCustomData().
Upvotes: 5