tag:blogger.com,1999:blog-6163975526168599737.post7993835894426870495..comments2022-12-03T09:44:07.839+00:00Comments on Mooduino: Wikipedia API User Agent String in PHP and cURLAnonymoushttp://www.blogger.com/profile/10540099897873200193noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-6163975526168599737.post-8836197456338521492013-12-19T22:36:08.785+00:002013-12-19T22:36:08.785+00:00Thank you for this helpful post.Thank you for this helpful post.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6163975526168599737.post-19583375113038727332011-07-28T05:57:02.086+01:002011-07-28T05:57:02.086+01:00Is goog, I want user it in my web http://www.satel...Is goog, I want user it in my web http://www.satelliteview.orgAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6163975526168599737.post-85354801092526843802011-05-03T10:58:17.543+01:002011-05-03T10:58:17.543+01:00In follow up to my previous message moo ive been a...In follow up to my previous message moo ive been able to cut it down by adding - &section=0 to the end of the URL. However this returns the images all i want is the introduction text? Id much appreciate your help on this topic<br /><br />thanks,<br />DIM3NSIONDIM3NSIONnoreply@blogger.comtag:blogger.com,1999:blog-6163975526168599737.post-76451077438026588522011-05-02T16:14:51.498+01:002011-05-02T16:14:51.498+01:00Perfect, thanks for that. I'm struggling to fi...Perfect, thanks for that. I'm struggling to figure out a way of parsing just the introduction text that accompanies the article. Any ideas?<br /><br />Thanks,<br /><br />DIM3NSIONDIM3NSIONnoreply@blogger.comtag:blogger.com,1999:blog-6163975526168599737.post-37688341899654380212011-05-01T14:33:17.779+01:002011-05-01T14:33:17.779+01:00Hi DIM3NSION
To get the actual content, I used th...Hi DIM3NSION<br /><br />To get the actual content, I used the parse action from the wiki API. So, the URL in your case would be <br /><br />http://en.wikipedia.org/w/api.php?action=parse&page=football&redirects=1&format=json&prop=text<br /><br />I hope this helps.<br /><br /><br />MichaelAnonymoushttps://www.blogger.com/profile/10540099897873200193noreply@blogger.comtag:blogger.com,1999:blog-6163975526168599737.post-22547539666566923852011-05-01T13:38:36.541+01:002011-05-01T13:38:36.541+01:00Hi moo. Thankyou for your example, ive managed to ...Hi moo. Thankyou for your example, ive managed to get a response however the array only tells me this information from wikipedia (searched for football) - <br /><br />[pages] => Array<br /> (<br /> [23976719] => Array<br /> (<br /> [pageid] => 23976719<br /> [ns] => 0<br /> [title] => Football<br /> [touched] => 2011-04-28T16:48:04Z<br /> [lastrevid] => 426407882<br /> [counter] => <br /> [length] => 89919<br /> )<br /> <br /> )<br /><br /><br />how would i actually get the information about the subject football?<br /><br />Thanks,<br /><br />DIM3NSIONDIM3NSIONnoreply@blogger.comtag:blogger.com,1999:blog-6163975526168599737.post-37639156225936675682010-07-13T00:22:55.943+01:002010-07-13T00:22:55.943+01:00Thanks! Exactly what I wanted to know.Thanks! Exactly what I wanted to know.Caseynoreply@blogger.comtag:blogger.com,1999:blog-6163975526168599737.post-57061684736970656602010-07-10T18:31:11.205+01:002010-07-10T18:31:11.205+01:00Hi Casey
Zend_Json::decode() is part of the Zend ...Hi Casey<br /><br />Zend_Json::decode() is part of the Zend Framework (http://zendframework.com/manual/en/zend.json.basics.html) and is used here to turn the JSON string that Wikipedia returns into native PHP associative arrays.Anonymoushttps://www.blogger.com/profile/10540099897873200193noreply@blogger.comtag:blogger.com,1999:blog-6163975526168599737.post-47166059059621165892010-05-28T00:18:18.564+01:002010-05-28T00:18:18.564+01:00Thank you so much for this article; I was looking ...Thank you so much for this article; I was looking at all the wrong reasons for the new 403 my script was recieving.<br /><br />One question though (I'm new to php) -- what does "Zend_Json::decode($res);" do (including the handling in the Zend_Json.php file)?<br /><br />Thanks,<br />Caseyjarlaxle180https://www.blogger.com/profile/05584431593120388197noreply@blogger.com