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

Make it possible to specify the parser for BeautifulSoup4 #39

Open
fumiya5863 opened this issue Feb 3, 2022 · 0 comments
Open

Make it possible to specify the parser for BeautifulSoup4 #39

fumiya5863 opened this issue Feb 3, 2022 · 0 comments

Comments

@fumiya5863
Copy link

fumiya5863 commented Feb 3, 2022

If you have lxml installed, BeautifulSoup4 will set lxml as the default parser, so it would be better to be able to specify the parser depending on the situation.

doc = BeautifulSoup(html)

This is the default setting because we didn't actually do the parser above.

Depending on the environment, the following issue cases may occur due to the above reasons
#37

As a solution, I think it would be a good idea to add a new parser that can be selected in the following arguments

def __init__(self, url=None, html=None, scrape=False, **kwargs):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant