error in using wikipedia api



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

Related to : error in using wikipedia api
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.


Why do I keep getting this “help” error code from Wikipedia API?
Programming Languages

I'm trying to get a random page from Wikipedia, using WikiMedia's documented Random method.


Safari has no problem getting the page: http://en.wikipedia.org/w/api.php?action=query&list=random&rnlimit=1&rnnamespace=0&format=json


But when I do, using Ruby HTTP/Net, I keep getting this exact error page: http://en.wikipedia.org/w/api.php (with the same "help" error code, and empty info).


url = URI.parse('http://en.wikipedia.org/w/api.php?action=query&list=random&rnlimit=1&rnnamespace=0&format=json')
req = Net::HTTP::Get.new(url.path, "User-Agent" => "ourbandiscalled")
res = Net::HTTP.s
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
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
Searching Wikipedia using API
Programming Languages

I want to search in wikipedia using query, I use that url : http://en.wikipedia.org/w/api.php?action=query&format=json&list=search&srsearch=apple That works but I wanna get into the first result of the search how can I do that ? :S Note : That url works fine when there is only one result.. I just need the title and some short description.. Thanks :)



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