Results 1 to 2 of 2
Thread: Connecting to wikipedia
- 01-31-2010, 11:32 AM #1
Member
- Join Date
- Jan 2010
- Posts
- 1
- Rep Power
- 0
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
- 02-05-2010, 06:46 PM #2
Member
- Join Date
- Feb 2010
- Posts
- 1
- Rep Power
- 0
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
-
Help connecting
By xcallmejudasx in forum JDBCReplies: 3Last Post: 04-16-2009, 07:09 PM -
Connecting To SQL Server
By rmaadil in forum JDBCReplies: 7Last Post: 08-20-2008, 05:53 PM -
Java Wikipedia API 3.0.7
By Java Tip in forum Java SoftwareReplies: 0Last Post: 06-28-2008, 05:25 PM -
Java Wikipedia API 3.0.6
By Java Tip in forum Java SoftwareReplies: 0Last Post: 05-06-2008, 06:54 PM -
Connecting to a Web server
By Java Tip in forum java.netReplies: 0Last Post: 04-07-2008, 07:57 PM


LinkBack URL
About LinkBacks

Bookmarks