• Stars
    star
    108
  • Rank 321,259 (Top 7 %)
  • Language
    C++
  • License
    GNU Affero Genera...
  • Created about 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A HTML processor inspired by jq

hq

A HTML processor inspired by jq (https://github.com/stedolan/jq)

Building & Usage

Building

Dependencies

Build

meson build && ninja -C build

The executable will be built to build/hq.

Usage

Dependencies

Use

Application help text:

hq (html query) - commandline HTML processor © Mara Robin Broda, 2018
Usage: build/hq [options] <selector> <mode> [mode argument]

Options:
  -h, --help
    show this text
  -f, --file <file>
    file to read (defaults to stdin)
  -d, --delimiter <delim>
    delimiter character to use between results (defaults to newline)
  -0, --null
    uses \0 as delimiter

  <selector>
    CSS selector to match against
  <mode>
    processing mode
    may be one of { data, text, attr }:
      data - return raw html of matching elements
      text - return inner text of matching elements
        [mode argument: formatting]
          supported modes: { plain, ansi, md }
          default: plain
          for plain, ANSI, or markdown formatted output respectively
      attr - return attribute value of matching elements
        <mode argument: attr>
          attribute to return

Examples:
  curl -sSL https://example.com | build/hq a data
  curl -sSL https://example.com | build/hq a attr href

Example usage:

curl -s https://coderobe.net | hq a data

<a href="https://keybase.io/coderobe">Keybase (coderobe)</a>
<a href="https://github.com/coderobe">Github (coderobe)</a>
<a href="https://twitter.com/coderobe">Twitter (coderobe)</a>

curl -s https://coderobe.net | hq a text

Keybase (coderobe)
Github (coderobe)
Twitter (coderobe)

curl -s https://coderobe.net | hq a attr href

https://keybase.io/coderobe
https://github.com/coderobe
https://twitter.com/coderobe

You get the idea.

License

This work, written by Mara Robin Broda (coderobe) in 2018, is licensed under the terms of the GNU Affero General Public License v3.0

More Repositories

1

VBiosFinder

Extract embedded VBIOS from (almost) any BIOS Update
Ruby
128
star
2

archlinux-steamlink

run arch linux arm on a steamlink, without touching the nand
Shell
24
star
3

AzulPatcher4600

Lilu plugin which applies common patches for the mobile HD4600 iGPU
C++
18
star
4

base65536-ruby

Unicode's answer to Base64, in Ruby
Ruby
7
star
5

TrimForce

Lilu plugin which forces SSD TRIM on unsupported drives
C++
5
star
6

expirobot

🗝️💬 GPG key expiry notifications via Matrix
Ruby
4
star
7

jsplice

JSplice is a java class hotpatcher CLI powered by javassist
Java
4
star
8

crixel

crystal sixel renderer lib
Crystal
4
star
9

unbreak-tweetdeck

💣 fix current tweetdeck issues
3
star
10

czar

xar unarchiver
Crystal
3
star
11

screencap

Crystal
2
star
12

shrex

shex: continued
Go
2
star
13

cdroot

gain pseudo-root on restricted user accounts using a filesystem overlay
Shell
2
star
14

CVE-2018-15912-PoC

https://nvd.nist.gov/vuln/detail/CVE-2018-15912
Shell
2
star
15

coderobe

2
star
16

sorting

flashy visuals
C
2
star
17

codeflags

All kinds of flags in all kinds of different languages
Ruby
2
star
18

dotfiles

Shell
1
star
19

scripts

A collection of scripts that didn't get their individual repositories
Shell
1
star
20

nightingale

another systems emulator for teaching, archive recovery circa 2019
C++
1
star
21

oxy-gen

generate manpages for oxy-secure/oxy
Shell
1
star
22

acpi-p955er

ACPI DSDT/SSDT extension & tools to control Clevo P955ER peripherals (LED, FAN)
1
star
23

PatchCom4360

Lilu plugin required for the Broadcom BCM94352Z on Sierra (unstable)
C++
1
star
24

0x20-Colors

0x40 Hues using Nuklear. Incomplete
C++
1
star
25

bassboost

🔊 A variable system load (Linux, MacOS, Windows)
C++
1
star
26

cetrinet

another multiplayer tetris game
C++
1
star
27

0x40Versions

💩 0x40 Hues version listing
JavaScript
1
star