Comments (4)
https://github.com/ericchiang/xpup
from pup.
I'd be happy to see this. If someone can provide a well maintained library that works with the golang.org/x/net/html
package, then it'd be relatively trivial to add.
from pup.
Hi, both Gokogiri and XPath provides xpath parsing for Golang though the XPath package supports a smaller subset of the XPath specification compared to Gokogiri
from pup.
Gokogiri provides bindings to LibXML. I'd like pup to remain dependency-less :)
xmlpath is for xml, but has some support for HTML. However it can only select the text between elements rather than the elements themselves. It would be impossible to recreate the HTML from a selection a posteriori.
from pup.
Related Issues (20)
- Ability to execute different commands on multiple selectors HOT 4
- Bug: text{} on multiple selector individually (Feature request)
- Error with MacOS when using HomeBrew HOT 4
- Can anyone help me with the following? HOT 2
- arm64 Mac download needed HOT 2
- can't get the textarea element HOT 1
- Can't install HOT 1
- README update needed -- Installation generates an error since go get is deprecated outside of modules.
- Using WSL Ubuntu 20.04.5 LTS HOT 2
- Is it possible to slightly manipulate the output HTML? HOT 1
- Maintainer needed? HOT 3
- Selector combination don't work as expected HOT 5
- Vulnerability of dependency "golang.org/x/net, golang.org/x/text, golang.org/x/sys" HOT 2
- [Feature Request] Implement :has selector HOT 1
- :not selector with multiple arguments HOT 1
- Add Support for "relative-time" Element
- How to indent with tabs? HOT 1
- Subsequent sibling combinator not working HOT 1
- Preserving order of selectors
- i'm too dumb to install go packages HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pup.