Hello, I read there is no api to obtain main article of wikipedia articles, but I also noticed many topics on stackoverflow are old of one year.
Is there any progress on this? Also, is it possible to obtain thumbnails of images (or specified size) for multiple pages?
If there is no way to obtain the first image appearing in the article, which way would you suggest in order to pick up the image from a set of images in the page, avoiding to parse the whole page and get the thumbnail? this would be important because I am trying to make a sequential call and i don't want to query in parallel.
Thank you for sharing ideas and state of the art! Luigi
There is the PageImages extension now: https://www.mediawiki.org/wiki/Extension:PageImages . It's deployed on all Wikimedia sites, as far as I know.
Bartosz! You're my hero: exactly what i need! tks soo much!! just a couple of things more:
I am still trying to query multiple titles in one shot, to avoid parallel query. I was not able to obtain also multiple images associated to the titkes, while for other parameters yes.
Have you maybe tried? This would be real important.
Also, in the documentation is written: pithumbsize -> refers to the width however, when i set it i got the height do you get same results - i mean are you maybe aware it is just an oversight in the documentation?
Thank you!
On Sat, Apr 27, 2013 at 11:27 PM, Bartosz Dziewoński matma.rex@gmail.comwrote:
There is the PageImages extension now: https://www.mediawiki.org/** wiki/Extension:PageImageshttps://www.mediawiki.org/wiki/Extension:PageImages. It's deployed on all Wikimedia sites, as far as I know.
-- Matma Rex
______________________________**_________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.**org Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/mediawiki-apihttps://lists.wikimedia.org/mailman/listinfo/mediawiki-api
I found it I found it! just set pilimit !!
good dev to all guys ;)
On Sun, Apr 28, 2013 at 12:23 AM, Luigi Assom luigi.assom@gmail.com wrote:
Bartosz! You're my hero: exactly what i need! tks soo much!! just a couple of things more:
I am still trying to query multiple titles in one shot, to avoid parallel query. I was not able to obtain also multiple images associated to the titkes, while for other parameters yes.
Have you maybe tried? This would be real important.
Also, in the documentation is written: pithumbsize -> refers to the width however, when i set it i got the height do you get same results - i mean are you maybe aware it is just an oversight in the documentation?
Thank you!
On Sat, Apr 27, 2013 at 11:27 PM, Bartosz Dziewoński matma.rex@gmail.comwrote:
There is the PageImages extension now: https://www.mediawiki.org/** wiki/Extension:PageImageshttps://www.mediawiki.org/wiki/Extension:PageImages. It's deployed on all Wikimedia sites, as far as I know.
-- Matma Rex
______________________________**_________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.**org Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/mediawiki-apihttps://lists.wikimedia.org/mailman/listinfo/mediawiki-api
-- Luigi Assom
Skype contact: oggigigi
On 28/04/13 00:23, Luigi Assom wrote:
Also, in the documentation is written: pithumbsize -> refers to the width however, when i set it i got the height do you get same results - i mean are you maybe aware it is just an oversight in the documentation?
We (mostly) use the width for thumbnailing. It's strange that it returns the height. What's the query you're doing?
Hi platonides!
thank you for following up: plz have a look to this simple query: http://en.wikipedia.org/w/api.php?action=query&prop=pageimages&title...
as you can see, the height is set to 100, not width. Am I missing smtg?
On Sun, Apr 28, 2013 at 8:55 PM, Platonides platonides@gmail.com wrote:
On 28/04/13 00:23, Luigi Assom wrote:
Also, in the documentation is written: pithumbsize -> refers to the width however, when i set it i got the height do you get same results - i mean are you maybe aware it is just an oversight in the documentation?
We (mostly) use the width for thumbnailing. It's strange that it returns the height. What's the query you're doing?
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
On 28/04/13 21:41, Luigi Assom wrote:
Hi platonides!
thank you for following up: plz have a look to this simple query: http://en.wikipedia.org/w/api.php?action=query&prop=pageimages&title...
as you can see, the height is set to 100, not width. Am I missing smtg?
Ok, after investigating it, it turns out that the code is checking that none of them is bigger than pithumbsize. As Albert Einstein photo has a portrait orientation, it apparently affects only the height. You can see the opposite effect in an article with a landscape image, eg. http://en.wikipedia.org/w/api.php?action=query&prop=pageimages&title...
Oh I see, so if it is portrait, it sets the height, otherwise the width.
So how to have a set of images all of standard size by width ? maybe committing on github to modifiy the code?
also, is this an api of use which won't be dismissed for the roadmap of wikipedia "api 2.0" ? I read it is still experimental on the extension panel and last commit 2012 - or should i consider it stable?
On Sun, Apr 28, 2013 at 10:38 PM, Platonides platonides@gmail.com wrote:
On 28/04/13 21:41, Luigi Assom wrote:
Hi platonides!
thank you for following up: plz have a look to this simple query:
http://en.wikipedia.org/w/api.php?action=query&prop=pageimages&title...
as you can see, the height is set to 100, not width. Am I missing smtg?
Ok, after investigating it, it turns out that the code is checking that none of them is bigger than pithumbsize. As Albert Einstein photo has a portrait orientation, it apparently affects only the height. You can see the opposite effect in an article with a landscape image, eg.
http://en.wikipedia.org/w/api.php?action=query&prop=pageimages&title...
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org