xq
xpath
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
xq
-
Build an Open Source Project: Behind the Scenes
Some time ago, I started a project called "xq", which is a command-line XML and HTML beautifier and content extractor written in Go. Using this project as an example, I want to show what I did to make it a little bit more discoverable and usable by other people.
- November 15-19, 2022 FLiP Stack Weekly
- Show HN: Xq – command-line XML and HTML beautifier and content extractor
-
xq: command-line XML beautifier and content extractor (written in Go)
Thank you for highlighting the issue! I'll take a look. See https://github.com/sibprogrammer/xq/issues/1 for the reference.
xpath
-
I have this code On Playground.. It is very simplified... but when reading from file it breaks and cannot handle rune characters.... The strings.Replace function just stops working
It looks like you're trying to parse HTML by using the strings package. For reference, you might be better off using an xpath tool or the html package that has built-in tokenizers to do your tokenizing. That makes it easier to find the nodes you're looking for and the values contained within those nodes.
What are some alternatives?
go-xmldom - XML DOM processing for Golang, supports xpath query
colly - Elegant Scraper and Crawler Framework for Golang
pulsar-io-cloud-storage - Cloud Storage Connector integrates Apache Pulsar with cloud storage.
GoQuery - A little like that j-thing, only in Go.
jsonquery - JSON xpath query for Go. Golang XPath query for JSON query.
jsonpath - JSONPath with dot notation generator for golang
wa-tunnel - Tunneling Internet traffic over Whatsapp
align - A general purpose application and library for aligning text.
spring-pulsar - Spring Friendly Abstractions for Apache Pulsar
Slugify - A Go slugify application that handles string
devenv - Fast, Declarative, Reproducible, and Composable Developer Environments
html-to-markdown - ⚙️ Convert HTML to Markdown. Even works with entire websites and can be extended through rules.