pup

(β˜… 8,435)

Parsing HTML at the command line

  • .gitignore
  • display.go
  • go.mod
  • go.sum
  • LICENSE
  • parse.go
  • parse_test.go
  • pup.go
  • pup.rb
  • README.md
  • selector.go

# Installation Guide

1. Get the code
git clone https://github.com/ericchiang/pup

Downloads the entire project code from GitHub to your computer.

cd pup

Moves into the project folder you just downloaded.

2. Official Install Script

Easy Recommended
Prerequisites
  • Homebrew A package manager for macOS/Linux.
brew install https://raw.githubusercontent.com/EricChiang/pup/master/pup.rb

Installs the pre-built package via Homebrew β€” no source build required.

βœ… After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.

Pulled directly from this repo's README.

3. Go

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Go The Go compiler and toolchain.
go build ./...

Compiles the Go program into an executable.

go run .

Runs the Go program directly without a separate build step.

βœ… If the build finishes without errors, it worked. If you used go run ., check the terminal output.
// repository documentation