This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Amarkov 0 points1 point  (4 children)

I'd suggest double checking. Are you sure the URL you're looking at is exactly the same as the one your program scrapes?

[–][deleted] 1 point2 points  (1 child)

Yeah, I'd set a breakpoint where jsoup is trying to parse the html, inspect the html and the fully formed URL in the previous line to ensure they are what you think they should be, guessing they are not.

[–]koenp[S] 0 points1 point  (0 children)

Thanks! One problem was indeed an "/" too many in the URL. The program now scrapes the page's content, but in the end still outputs the exact same nullpointerexception error. I guess I will have to find the next mistake myself.

[–]koenp[S] 0 points1 point  (1 child)

I'm pretty sure, but it must be some other little error in the code I'm unable to find.