Results 1 to 2 of 2
  1. #1
    mannez is offline Member
    Join Date
    Jan 2010
    Posts
    1
    Rep Power
    0

    Default Connecting to wikipedia

    Hello

    Im trying to learn how to connect to wikipedia and then retrieve articles from a java application.
    I have been reading this url connection tutorial from java.sun:
    http://java.sun.com/docs/books/tutor...onnecting.html

    This far i have been able to stream data into a string from the url, but it contained alooot of html code.

    So my questions are:

    1. witch ways are there to clean up the string from any html code and just keep the text?

    2. Is it possible to write to the wikipedia search field through the java application without any permission or such?


    I have been googling around alot but havent found anything that made any sence to me, and all im asking for is some tips or maybe a tutorial link or two

    And im using netbeans if thats relevant

    Best regards / mannez

  2. #2
    Delehal is offline Member
    Join Date
    Feb 2010
    Posts
    1
    Rep Power
    0

    Default

    I'm not much of a Java programmer, but I do know Wikipedia fairly well. If you don't mind wikitext (double brackets for links, and so on), you can get it for any article with a simple GET request by adding "?action=raw" to its URL.

    For example, <http://en.wikipedia.org/wiki/Main_Page> becomes <http://en.wikipedia.org/wiki/Main_Page?action=raw>.

Similar Threads

  1. Help connecting
    By xcallmejudasx in forum JDBC
    Replies: 3
    Last Post: 04-16-2009, 08:09 PM
  2. Connecting To SQL Server
    By rmaadil in forum JDBC
    Replies: 7
    Last Post: 08-20-2008, 06:53 PM
  3. Java Wikipedia API 3.0.7
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 06-28-2008, 06:25 PM
  4. Java Wikipedia API 3.0.6
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 05-06-2008, 07:54 PM
  5. Connecting to a Web server
    By Java Tip in forum java.net
    Replies: 0
    Last Post: 04-07-2008, 08:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •