Rectangle 27 0

java JSoup Grabbing HTML value returns null?


Jsoup.connect("http://watchout4snakes.com/CreativityTools/RandomWord/RandomWord.aspx").get();
Jsoup.parse("UTF-8", "http://watchout4snakes.com/CreativityTools/RandomWord/RandomWord.aspx");
Jsoup.parse(new URL("http://watchout4snakes.com/CreativityTools/RandomWord/RandomWord.aspx"), 4000);

Thankyou :) that worked. The first random word it just made for me was error so I got a little confused xD.

You are using the parse method that accepts HTML content. You need to use the one takes a URL instead. Replace

with

Note