文件名称:http-fetcher:Apache HttpClient 的包装代码,提供常见的页面获取功能
文件大小:86KB
文件格式:ZIP
更新时间:2024-06-18 04:59:24
Java
http-fetcher Apache HttpClient 的包装代码,提供常见的页面获取功能 TODO-在此处添加更多上下文。 创建具有五个线程的访存程序的示例,该访存程序仅接受服务器标识为text / html的内容: BaseFetcher fetcher = new SimpleHttpFetcher ( 1 , new UserAgent ( " mycrawler " , " crawler@domain.com " , " http://domain.com " )); Set< String> validMimeTypes = new HashSet< String> (); validMimeTypes . add( " text/html " ); fetcher . setValidMimeTypes(validMimeTypes); FetchedRe
【文件预览】:
http-fetcher-master
----.gitignore(162B)
----src()
--------main()
--------test()
----LICENSE(11KB)
----doc()
--------eclipse-formatter.xml(28KB)
--------LICENSE.txt(11KB)
--------licenses()
----pom.xml(14KB)
----README.md(574B)
----CHANGES.txt(463B)