Skip to content

Wrapper code for Apache HttpClient that provides common page fetching functionality

License

Notifications You must be signed in to change notification settings

ScaleUnlimited/http-fetcher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-fetcher

Wrapper code for Apache HttpClient that provides common page fetching functionality

TODO - add more context here.

An example of creating a fetcher with five threads that will only accept content identified by the server as text/html:

BaseFetcher fetcher = new SimpleHttpFetcher(1, new UserAgent("mycrawler", "[email protected]", "http://domain.com"));
Set<String> validMimeTypes = new HashSet<String>();
validMimeTypes.add("text/html");
fetcher.setValidMimeTypes(validMimeTypes);
FetchedResult result = fetcher.get("http://localhost:8089/");

About

Wrapper code for Apache HttpClient that provides common page fetching functionality

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 64.7%
  • HTML 35.3%