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


Related to : Problem in Wikipedia API
Problem in Wikipedia API
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 $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

error in using wikipedia api
Programming Languages

i am using wikipedia api to fetch data from wiki pedia but i am getting error here iam posting my code and my error. Please help me.


HttpWebRequest myRequest =
(HttpWebRequest)WebRequest.Create("http://en.wikipedia.org/w/api.php?action=opensearch&format=xml&search=hello");
System.Net.ServicePointManager.Expect100Continue = false;
using (HttpWebResponse response = (HttpWebResponse)myRequest.GetResponse())
{
string ResponseText;
using (StreamReader reader = new StreamReader(response.GetResponseStream()))
{
ResponseText = reader.ReadToEnd();
}
lblresult.Tex
How do I use the Wikipedia API
Programming Languages

I want try to get tennis players description from wikipedia without scratch the DOM page on a player x. It's not allowed and very boring. So, I hope someone can reply to my only question.


What can I do precisly with the Wikipedia API ? Can I get informations about a collection of tennis players easily ? or this API is not working for this. If not, I need someone tells me what is the purpose of this API because I don't understand the documentation.


Wikipedia API Error
Programming Languages

I am trying to script a simple Search & Return text box with the Wikipedia API. I'm having a few problems with scripting and fixing a few errors myself. If anybody could point an error out or knows how to fix it themselves, I'll be greatfull.


The script I am trying to get work in jsfiddle - http://codebetter.com/matthewpodwysocki/2010/03/15/introduction-to-the-reactive-extensions-for-javascript-wikipedia-lookup/


The jsFiddle that I am having problems with: http://jsfiddle.net/eY8uH/140/


Again, If anyone can help me by pointing out an error, thank you.


Wikipedia API for geolocations
Programming Languages

Is it possible, using the existing Wikipedia API's to get a list of articles around a Geo-location? Sort of like how Google maps does it?


I would like to say that I am "here" and find out what is around me on Wikipedia.


I can see on articles like this you can see the "Coordinates" on the right hand side, so I would like to do a query on these coordinates...


any thoughts?


Wikipedia API
Programming Languages
At the moment, Ive got this:
PHP Code:
<?
  $url = "http://en.wikipedia.org/w/api.php?"
        ."action=query&"
        ."list=exturlusage&"
        ."format=xml&"
        ."euquery=www.fender.com";
          
  // Get raw data
  $response = file_g

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .