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

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

Open
facelessuser opened this issue Jan 21, 2019 · 0 comments
Open
Labels
C: API Related to the API. P: maybe Pending approval of low priority request. T: feature Feature.

Comments

@facelessuser
Copy link
Owner

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)
@facelessuser facelessuser added T: feature Feature. C: API Related to the API. P: maybe Pending approval of low priority request. labels Jan 21, 2019
@facelessuser facelessuser changed the title Possibly allow create a custom parser with preset namespaces etc. Possibly allow creating a custom parser with preset namespaces etc. Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: API Related to the API. P: maybe Pending approval of low priority request. T: feature Feature.
Projects
None yet
Development

No branches or pull requests

1 participant