New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/hardy8059/HTML_Parser

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/hardy8059/HTML_Parser

  • v0.0.0-20201017214001-329a530ec52f
  • Source
  • Go
  • Socket score

Version published
Created
Source

HTML Parser

This repo implements a html parser package, which extracts the links and texts from "a"(hyperlink) tag and returns as a array of json objects.

Steps to run

  • Clone or download the github repo from here.

  • Data contains dummy templates for testing. You can also create your own file in the same directory which you would want to test.

  • Go to the file main.go and assign filename variable with the name of your file.

    filename := "test2.html" #replace test2.html

  • Run the file using the below command:

    go run main.go
    

Folder Structure

  • Images - Contains the screenshot of output of test2.html file.

  • data - Contains the template files for testing.

  • main - Contains the main file for execution.

  • src - Contains the source code.

Example Output

alt text

Packages Explored

Credits - Project idea by Jon Calhoun

FAQs

Package last updated on 17 Oct 2020

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