public class SeleniumDownloader extends Object implements Downloader, Closeable
| 构造器和说明 |
|---|
SeleniumDownloader()
Constructor without any filed.
|
SeleniumDownloader(String chromeDriverPath)
新建
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
Page |
download(Request request,
Task task) |
SeleniumDownloader |
setSleepTime(int sleepTime)
set sleep time to wait until load success
|
void |
setThread(int thread) |
public SeleniumDownloader(String chromeDriverPath)
chromeDriverPath - chromeDriverPathpublic SeleniumDownloader()
public SeleniumDownloader setSleepTime(int sleepTime)
sleepTime - sleepTimepublic Page download(Request request, Task task)
download 在接口中 Downloaderpublic void setThread(int thread)
setThread 在接口中 Downloaderpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2017. All rights reserved.