Skip to content

Talk pages do not show up in wptools.category #169

@Nathan1123

Description

@Nathan1123

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions