Bliki just Images

16 views
Skip to first unread message

David K.

unread,
Aug 6, 2014, 9:01:10 AM8/6/14
to bl...@googlegroups.com
public static void main(String args[]) {

String[] listOfTitleStrings = { "Die Bremer Stadtmusikanten" };// Die Bremer Stadtmusikanten
User user = new User("", "", "http://de.wikipedia.org/w/api.php");
user.login();
List<Page> listOfPages = user.queryContent(listOfTitleStrings);
for (Page page : listOfPages) {
WikiModel wikiModel = new WikiModel("${image}", "${title}");
String html = wikiModel.render(page.toString());
System.out.println(html);
}
}

so far so good, but I just nee the includes Images and no text.

Getting crazy with it, course:
page.getImageUrl()

is allways emty.

What is the sense of a parser, when I have to parse the Image-Tags by myself afterwards???

Please give me a hint or any link to Tutorials handling this (can not believe that all good Programs today are so bad documentated :***(    )

Greatings Oekel
Reply all
Reply to author
Forward
0 new messages