Using JSoup To Extract HTML Table Contents

You probably have this solved by now, but this will go over each table and print out the team name and the Win/Loss column. Adjust for the information you need. The second table is obviously formatted differently, so if you want different information from that table, you will have to adjust further. Let me know … Read more

JSoup UserAgent, how to set it right?

You might try setting the referrer header as well: doc = Jsoup.connect(“”) .userAgent(“Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv1.8.1.6) Gecko/20070725 Firefox/”) .referrer(“”) .get();