Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Nathan1123 opened this issue Feb 5, 2022 · 0 comments
Open

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

Nathan1123 opened this issue Feb 5, 2022 · 0 comments
Assignees
Labels

Comments

@Nathan1123
Copy link

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

@siznax siznax self-assigned this Feb 22, 2022
@siznax siznax added the Bug label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants