Skip to content

Counts internal vs. external hrefs within a page to rate on SEO.

Notifications You must be signed in to change notification settings

Tim-ls/href-counter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

href-counter

A Golang example application which counts internal vs. external hrefs within a page to rate SEO.

The golang.org/x/net/html package is used to iterate through all the HTML tokens in the web-page. It provides a working example of parsing HTML piece-by-piece.

This can be built with the Dockerfile in the repository or through go get.

References

Used in these two blog posts:

Example:

$ url=http://blog.alexellis.io/ go run app.go
{"internal":40,"external":2}

$ url=http://blog.alexellis.io/golang-json-api-client/ go run app.go
{"internal":17,"external":15}

About

Counts internal vs. external hrefs within a page to rate on SEO.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 81.7%
  • Shell 18.3%