HW90
HW90

Reputation: 1983

MIME-Types in JSOUP

I'm developing an application using Apaches Jsoup to download a homepage. Now is my question: is it possible to define the MIME-types in SOUP. My aim is, just to load the text of the selected homepage and to exclude images from loading.

My Code:

Document doc = null;
doc = Jsoup.connect(url).get();

Upvotes: 0

Views: 201

Answers (1)

Stuart Caie
Stuart Caie

Reputation: 2913

When you request a URL with Jsoup, it will only fetch that URL, not any external resources referenced by the document at that URL. So, you have already achieved your stated aim.

Upvotes: 1

Related Questions