New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc