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.
-
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
-
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.
Credits - Project idea by Jon Calhoun