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

github.com/ashish041/html-parser

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/ashish041/html-parser

v0.0.0-20220310033229-2f38694cbf64
Source
Go
Version published
Created
Source

HTML Parser

Web application to parse website and retrieve following informations

  • HTML Version
  • Page Title
  • Headings count by level
  • Amount of internal and external links
  • Amount of inaccessible links
  • If a page contains a login form

Command to install Go and run web application

make

Command to run web application

make up

Command to run web application in docker

make docker

Command to call endpoint and generate output

curl http://localhost:8080?url="yahoo.com"
curl http://localhost:8080?url="https://gmail.com"
curl http://localhost:8080?url="http://www.google.com

Please make sure the web application is not running on the host machine before running in docker. Command to check whether web application running on port 8080.

netstat -nlp |grep 8080

FAQs

Package last updated on 10 Mar 2022

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