Skip to content

Possibly allow creating a custom parser with preset namespaces etc. #94

@facelessuser

Description

@facelessuser

It might be nice to spawn a custom parser where you can just add your namespace mapping once, and all calls will pick it up. You could still do a one off call and manually feed them in, but you could also just create a custom parser and then just call as normal:

import soupsieve as sv

parser = sv.custom_parser()
parser.set_namespaces({"ns": "http:/ns.com"})
parser.select(':header.class', soup)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: APIRelated to the API.P: maybePending approval of low priority request.T: featureFeature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions