Problem in Wikipedia API



I have problem using the Wikipedia API. I use this PHP script,


<?php
$xmlDoc = new DOMDocument();
$xmlDoc->load("http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=New_York_Yankees&rvprop=content&format=xml");
print $xmlDoc->saveXML();
?>

and I have the following result in the browser. Why?


Warning:
DOMDocument::load(http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=New_York_Yankees&rvprop=content&format=xml)
[domdocument.load]: failed to open
stream: HTTP request fail


View Replies

Related to : Problem in Wikipedia API


Wikipedia : Java library to remove wikipedia text markup removal
Category : Java

I downloaded wikipedia dump and now want to remove the wikipedia markup in the contents of each page. I tried writing regular expressions but they are too many to handle. I found a python library but I need a java library because, I want to integrate into my code.


Thank you.


View Replies


[ubuntu] I cant install Wikipedia CD (0.5) nor the Pocket Wikipedia
Category : Ubuntu
Hi I am new to Ubuntu. I need Wikipedia off line so I tried a few suggestion: ( http://www.junauza.com/2008/07/offli...for-linux.html )
I unzipped pocketwikipedia and nothing happens when I click on the WikipediaL file.
I tried to google a possible way but nothing ( i tried chmod 755 or

View Replies


Problem in Wikipedia API
Category : Programming Languages

I have problem using the Wikipedia API. I use this PHP script,


<?php
$xmlDoc = new DOMDocument();
$xmlDoc->load("http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=New_York_Yankees&rvprop=content&format=xml");
print $xmlD

View Replies


[ubuntu] Amarok and Wikipedia problem
Category : Ubuntu
Hi Ubuntu Community:
I'm using Amarok 2.3.0 on Gnome.
In the past, when I played songs, Amarok would find the artist name of the music, and find that musician's Wikipedia page.
Now, Amarok's ability to find those pages is not working so well. It seems to search for "Artist Name (

View Replies


Wikipedia Settings Weird Problem
Category : Internet
Wikipedia Settings Weird Problem
  my computer crashed last week and before i purchase a new computer i'm using my old computer for now. for some reason whenever i sign into wikipedia on this computer and turn off the "new settings" feature, the next page that i click on automatic

View Replies


Getting Wikipedia Article Summary using NSScanner Problem
Category : Development Tools & Services

I am trying to get the summary of an article and download it as a string. This works great with some articles, but the wikipedia website is inconsistent. So NSScanner fails pretty often while it works fine for other articles.


Here's my NSScanner implementation:


NSStrin

View Replies


Problem with google maps Wikipedia layer
Category : Android
On Android 1.6, Google maps version: 3318, Acer liquid
Map shows wikipedia 'W' s but when you click on them, it just shows two options:
1. Show on map
2. Get Directions
It Does not show wikipedia article summary :confused:
Earlier it used to, but then I was installing bunch

View Replies


Jacobi algorithm problem... could wikipedia be wrong?
Category : C & C++ & C#
I am working on a c implementation of the jacobi algorithm, using wikipedia as an example.
I was trying to follow along with the given example on the page;
Jacobi method - Wikipedia, the free encyclopedia
The starting matrix A = [2 3,5 7]
then the lower is said to be [0 0,-5 0]

View Replies


Wapedia: 4 Wikipedia & more!: Best Wikipedia App I've used
Category : Android
This has to be my favorite Wikipedia app that I have used so far. It is loaded with features and it is extremely easy to use.
You can use it to browse Wikipedia or you can change between the 50+ other Wiki's that it offers. It includes almost all of the most popular Wiki's and if one tha

View Replies


[FREE APP] Wikipedia (Ad Free) -- a 100% ad-free, super slick Wikipedia app
Category : Android
Hi guys! I've just uploaded a free Wikipedia app to the Marketplace. It's completely ad-free :)
http://i.imgur.com/zVaSY.png
Check it out here:
https://market.android.com/details?id=com.rharjanto.wikimobile
or here:
Wikipedia (Ad Free)
Features:
✔ No a

View Replies


2012 / 2017 Copyrights BigHow , All Rights Reserved .