| 构造器和说明 |
|---|
SoEngine() |
| 限定符和类型 | 方法和说明 |
|---|---|
SoEngine |
allowEmptyCite(boolean allowEmptyCite)
allow result whose cite is empty.
|
SoEngine |
allowEmptyContent(boolean allowEmptyContent)
allow result whose content is empty.
|
SoEngine |
allowEmptyTitle(boolean allowEmptyTitle)
allow result whose title is empty.
|
String |
buildURL(Request request)
build url as
https://www.so.com/s? |
List<Result> |
extract(org.jsoup.nodes.Document document)
extract results from document
|
Method |
method()
connection method (get or post)
|
SoEngine |
setAllowEmptyLink(boolean allowEmptyLink)
allow result whose link is empty.
|
String |
UA()
the UA
|
public SoEngine allowEmptyTitle(boolean allowEmptyTitle)
allowEmptyTitle - true or falsepublic SoEngine allowEmptyContent(boolean allowEmptyContent)
allowEmptyContent - true or falsepublic SoEngine setAllowEmptyLink(boolean allowEmptyLink)
allowEmptyLink - true or falsepublic SoEngine allowEmptyCite(boolean allowEmptyCite)
allowEmptyCite - true or falsepublic String buildURL(Request request) throws Exception
https://www.so.com/s?q={keywords}&pn={page+1}public List<Result> extract(org.jsoup.nodes.Document document) throws Exception
EngineCopyright © 2016. All rights reserved.