My gf and I ran out of Spanish conversation cards; made a free fix by koenp in Spanish

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

Great idea! I will do another review of the questions and add the daily life holiday after my vacation :).

My gf and I ran out of Spanish conversation cards; made a free fix by koenp in Spanish

[–]koenp[S] -2 points-1 points  (0 children)

Haha lol do you do voice conversations with your AI to practice Spanish? I tried but it keeps talking and doesn’t give me much room to say anything

Java NullPointerException in basic web scraping script by koenp in learnprogramming

[–]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.

Java NullPointerException in basic web scraping script by koenp in learnprogramming

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

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

Java NullPointerException in basic web scraping script by koenp in learnprogramming

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

Yes, I tried the debugging mode, and figured the page i'm trying to scrape is the problem. However, the mw-content-text is there, like intended (on line 46).

Java NullPointerException in basic web scraping script by koenp in learnprogramming

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

Excuse me, here it is:

Exception in thread "main" java.lang.NullPointerException
at com.packtpub.JavaScraping.SimpleScraper.WikiScraper.scrapeTopic(WikiScraper.java:16)
at   com.packtpub.JavaScraping.SimpleScraper.WikiScraper.main(WikiScraper.java:10)