Skip to content

hardymunjal/HTML_Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published