myhtml icon indicating copy to clipboard operation
myhtml copied to clipboard

xpath support

Open MohammadRaziei opened this issue 1 year ago • 3 comments

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

MohammadRaziei avatar Jun 28 '23 12:06 MohammadRaziei

@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.

lexborisov avatar Jun 28 '23 16:06 lexborisov

@lexborisov what's the difference lexbor and myhtml ?

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

wonkyDD avatar Sep 16 '23 04:09 wonkyDD

@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.

lexborisov avatar Sep 16 '23 11:09 lexborisov