-3

i have the product keyword, i need images from wikipedia for that search keyword to display in my web application. is it possible? i'm doing this application in python/django framework.

CharlesB
  • 86,532
  • 28
  • 194
  • 218

1 Answers1

0

Some simple searching has this example in the tutorial, for fetching search result images:

?action=query&titles=San_Francisco&prop=images&imlimit=20&format=jsonfm.

You can use urllib2 to fetch the results, etc.

aneroid
  • 12,983
  • 3
  • 36
  • 66
  • This will list the images from the *article* “San Francisco”. And I'm not sure the keywords from the question will always match article names exactly. – svick Sep 11 '12 at 12:42
  • I was just pointing out that the wiki tutorial makes it quite clear how to do those kinds of queries. There are other queries which would return specific pages. The keywords may not match exactly but some obvious error checking is required. It depends on what the OP has tried already. Which is...nothing? – aneroid Sep 11 '12 at 12:48