wptools icon indicating copy to clipboard operation
wptools copied to clipboard

Talk pages do not show up in wptools.category

Open Nathan1123 opened this issue 3 years ago • 0 comments

Hello,

I apologize if this has already been brought up, but I found nothing when searching for this problem.

If I enter the following code, I get this result:

>>> page = wptools.category('Category:Stub-Class Outlines articles')
>>> page.get_members()
en.wikipedia.org (categorymembers) Category:Stub-Class Outlines a...
Category:Stub-Class Outlines articles (en) data
{
  members: <list(0)> 
  requests: <list(1)> category
}
<wptools.category.WPToolsCategory object at 0x7fac0599abe0>

The results comes back empty, but https://en.wikipedia.org/wiki/Category:Stub-Class_Outlines_articles actually has eight pages listed in it. As it turns out, wptools.category skips over anything not in the main namespace.

If this is not intentional, please fix it. If it is intentional, then what is the proper use case for extracting talk pages from a category?

Thanks

Nathan1123 avatar Feb 05 '22 19:02 Nathan1123