Skip to content

Broken default selector for pronunciation #573

@stephenmac7

Description

@stephenmac7

I wasn't getting any results from running wikipron (e.g. wikipron fra) and realized that the class names on wikipedia may have changed, breaking the XPath selectors used in config.py and extract/default.py. In particular, the span containing the pronunciation is now marked IPA nowrap instead of IPA.

Things seem to start working again if I replace span[@class = "IPA"] with span[contains(@class, "IPA")].

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