🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/nikkbh/html-parser-cli

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/nikkbh/html-parser-cli

v0.0.0-20240215091150-12ca9ccb5691
Source
Go
Version published
Created
Source

Website Parser CLI in Go

A simple CLI app that takes a website URL and a CSS selector as flags and prints the text content of that selector element.

Technologies uses

  • Go
  • Cobra

Usage/Examples

After cloning the repository run the following command to build the CLI.

go build -o bin/parser-html.exe

The .exe exetension is used only to run this CLI on windows. To build the CLI on Linux use the following command:

go build -o bin/parse-html

A reference to build for other OS environments here.

Next step is to run the CLI using

./bin/parse-html.exe parse-html -u <URL> -s <CSS_SELECTOR>

NOTE: Remember to put a . (dot) for classnames in the CSS_SELECTOR flag.

FAQs

Package last updated on 15 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts