> 2012/3/8 Bináris <[email protected]>
>> Do we have any tool for this task, or do
>> I have to write it from the base?
Your problem is so specific, I don't think this is the case.

On 8 March 2012 23:39, Bináris <[email protected]> wrote:
> * How do I decide if a page in file namespace contains an actual file or
> jsut a description page to a file located in Commons?

>>> print wikipedia.ImagePage.fileIsOnCommons.__doc__
Return True if the image is stored on Wikimedia Commons

> * How do I list all description pages without a local file?
This is more a request for a database query, but you could also just
loop on all the pages in the Image namespace.

The query is: select count(*) from page left join image on
page_title=img_name where page_namespace=6 and page_is_redirect=0 and
img_name is null;

The 461 pages are listed here:
http://toolserver.org/~valhallasw/huwiki_voor_binaris/ (all utf-8
encoded).

Best,
Merlijn

_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to