All Projects → qiniu → hdq

qiniu / hdq

Licence: Apache-2.0 license
HTML DOM Query Language for Go+

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to hdq

tutorial
Tutorials for GoPlus (The Go+ Language)
Stars: ✭ 27 (-3.57%)
Mutual labels:  gop, goplus
gossa
The Go/Go+ Interpreter
Stars: ✭ 53 (+89.29%)
Mutual labels:  gop, goplus
spx
spx - A Go+ 2D Game Engine for STEM education
Stars: ✭ 72 (+157.14%)
Mutual labels:  gop, goplus
Gop
GoPlus - The Go+ language for engineering, STEM education, and data science
Stars: ✭ 7,829 (+27860.71%)
Mutual labels:  gop, goplus
grafito
Portable, Serverless & Lightweight SQLite-based Graph Database in Arturo
Stars: ✭ 95 (+239.29%)
Mutual labels:  query-language
Groq
Specification for GROQ - Graph-Relational Object Queries
Stars: ✭ 117 (+317.86%)
Mutual labels:  query-language
Hypergraphql
GraphQL interface for querying and serving linked data on the Web.
Stars: ✭ 112 (+300%)
Mutual labels:  query-language
Purescript Selda
A type-safe, high-level SQL library for PureScript
Stars: ✭ 72 (+157.14%)
Mutual labels:  query-language
viziquer
Tool for Search in Structured Semantic Data
Stars: ✭ 12 (-57.14%)
Mutual labels:  query-language
freebase-mql
A review of the deprecated Freebase knowledge base and Metaweb Query Language (MQL). A brief comparison of MQL and GraphQL.
Stars: ✭ 41 (+46.43%)
Mutual labels:  query-language
Judge-Jury-and-Executable
A file system forensics analysis scanner and threat hunting tool. Scans file systems at the MFT and OS level and stores data in SQL, SQLite or CSV. Threats and data can be probed harnessing the power and syntax of SQL.
Stars: ✭ 66 (+135.71%)
Mutual labels:  query-language
Hypergraphql
GraphQL interface for querying and serving linked data on the Web.
Stars: ✭ 120 (+328.57%)
Mutual labels:  query-language
kql
Kirby's Query Language API combines the flexibility of Kirby's data structures, the power of GraphQL and the simplicity of REST.
Stars: ✭ 120 (+328.57%)
Mutual labels:  query-language
Pgql Lang
PGQL is an SQL-based query language for the Property Graph data model
Stars: ✭ 114 (+307.14%)
Mutual labels:  query-language
qcert
Compilation and Verification of Data-Centric Languages
Stars: ✭ 50 (+78.57%)
Mutual labels:  query-language
Rapidql
Query multiple APIs and DBs and join them in a single query
Stars: ✭ 91 (+225%)
Mutual labels:  query-language
fat ecto
Query mechanism for Ecto
Stars: ✭ 20 (-28.57%)
Mutual labels:  query-language
weedow-searchy
Automatically exposes web services over HTTP to search for Entity-related data using a powerful query language
Stars: ✭ 21 (-25%)
Mutual labels:  query-language
Emuto
manipulate JSON files
Stars: ✭ 180 (+542.86%)
Mutual labels:  query-language
Cql
CQL: Categorical Query Language implementation in Haskell
Stars: ✭ 132 (+371.43%)
Mutual labels:  query-language

hdq - HTML DOM Query Language for Go+

Build Status Go Report Card GitHub release Coverage Status Language GoDoc

Summary about hdq

hdq is a Go+ package for processing HTML documents.

Tutorials

Collect links of a html page

How to collect all links of a html page? If you use hdq, it is very easy.

import "github.com/goplus/hdq"

func links(url interface{}) []string {
	doc := hdq.Source(url)
	return [link for a <- doc.any.a if link := a.href?:""; link != ""]
}

At first, we call hdq.Source(url) to create a node set named doc. doc is a node set which only contains one node, the root node.

Then, select all a elements by doc.any.a. Here doc.any means all nodes in the html document.

Then, we visit all these a elements, get href attribute value and assign it to the variable link. If link is not empty, collect it.

At last, we return all collected links. Goto tutorial/01-Links to get the full source code.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].