On Thu, Mar 8, 2012 at 10:09 AM, Timothy Helck timothy.helck@gmail.com wrote:
Gentlemen,
Thanks for your previous suggestions.Unfortunately I've been busy with other things and I am just getting back to this.
I think I have found a reasonable strategy for searching images. I can use this query (siilar to what was suggested by Platonides): https://commons.wikimedia.org/w/api.php?action=query&list=search&srn...
Then I can parse the result set and create another query which gets me the urls: https://commons.wikimedia.org/w/api.php?action=query&titles=File:Chartre...
However, I am still encountering a problem -- commons.wikimedia.org doesn't like requests that don't come from a browser. When I put these queries into php I get a 403 error. Is there a url where I can search wikimedia programatically?
Please see http://meta.wikimedia.org/wiki/User-Agent_policy
regards,
Tim
On Sun, Jan 1, 2012 at 3:51 PM, Platonides platonides@gmail.com wrote:
On 30/12/11 21:01, Timothy Helck wrote:
Roan,
I've looked at search, but it only seems to return names of pages, not images. Is there a way to make it return images?
Tim
Files are at namespace 6, which wasn't included in the provided query:
https://commons.wikimedia.org/w/api.php?action=query&list=search&srn...
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
-Liangent