JackDanger / Collectlinks
Licence: mit
Golang package to read href tags from an HTML page
Stars: ✭ 61
Programming Languages
go
31211 projects - #10 most used programming language
Package collectlinks is useful for only one task:
Given a response from http.Get
it will use parse the page and
return to you a slice of all the href links found.
Usage:
package main
import (
"github.com/jackdanger/collectlinks"
"net/http"
"fmt"
)
func main() {
resp, _ := http.Get("http://motherfuckingwebsite.com")
links := collectlinks.All(resp.Body)
fmt.Println(links)
}
Running that will output:
[http://twitter.com/thebarrytone http://txti.es]
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].