Skip to content

Keys in data structure returned by article_views should match the title strings passed in #19

@colinmorris

Description

@colinmorris

Example:

>>> p.article_views('en.wikipedia', ['Bug report'], granularity='monthly', start='20220101', end='20220228')
defaultdict(<class 'dict'>, {datetime.datetime(2022, 1, 1, 0, 0): {'Bug_report': 262}, datetime.datetime(2022, 2, 1, 0, 0): {'Bug_report': 266}})

It's somewhat confusing that I can't use the titles I passed to the function ('Bug report') to index the data I get back. Instead I need to reverse-engineer the munging the applied by the mwviews client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions