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

    Default Connecting to wikipedia


    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:

    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
    Rep Power


    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, <> becomes <>.

Similar Threads

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