开发者

Alternatives to libxmljs [closed]

开发者 https://www.devze.com 2023-03-03 15:38 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

开发者_如何学编程

Closed 2 years ago.

Improve this question

Goal: Use Node.js to access a web page, manipulate the DOM using xpath syntax, and print the new DOM.

libxmljs is okay, but it has several dependencies which NPM doesn't resolve. Which libraries do you use to xpath arbitrary HTML?


I develop libxmljs on Mac OS X, so this shouldn't be your major hurdle. You need the libxml2 library and the scons utility in order to build successfully. Both of these are available via macports or homebrew. Once you have libxml2, make sure the xml2-config command-line utility is in your path. That's what I use to get the appropriate build flags.

@mcandre I believe you're the same person who submitted a ticket to the github repo. I hope you've gotten things worked out. If not, give more info about your problem. https://github.com/polotek/libxmljs

:Marco

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号