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

xpath support #191

Open
MohammadRaziei opened this issue Jun 28, 2023 · 3 comments
Open

xpath support #191

MohammadRaziei opened this issue Jun 28, 2023 · 3 comments

Comments

@MohammadRaziei
Copy link

hi. Could you support Xpath?
I know xpath support may be complicated but I need a relaxed version of xpath. each node of elements must have a path (like xpath) and we can get that value of xpath. also need a dictionary (map) to search nodes by their xpath (something like bidiectional map or using two map). maybe it hava some effects on its performance. but you can handle it by some flags in constructor that imply to support it or not.

I want to write a python api for myhtml and I really need this method

@lexborisov
Copy link
Owner

@MohammadRaziei

Unfortunately, the myhtml project is not and will not be supported. Only PRs in the form of fixes are accepted.

For a really fast parsing of HTML, use the lexbor library.
Try using CSS Selectors for your tasks. Please, see spec.

@wonkyDD
Copy link

wonkyDD commented Sep 16, 2023

@lexborisov what's the difference lexbor and myhtml ?

Do you recommend using lexbor, which is still maintained?
If not, why not?

@lexborisov
Copy link
Owner

@wonkyDD

lexbor is DOM, HTML, CSS, encoding and so on.
myhtml is only HTML.

lexbor is being developed and maintained.
myhtml does not develop and is not supported.

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

3 participants