crawl

package module
v0.0.0-...-b82c5ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

README

Golang-Web-Crawler-ByTag

This simple Golang web crawler will scrap the HTML of a given web page and output the content withing the defined tag. Note: This is free to use in your project

Call code

package main

import (
crawl "myown/crawler"
)

func main() {
crawl.WebCrawl("title", "https://github.com/JohnLins/Golang-Web-Crawler-ByTag")
}



Output:

<title>Golang-Web-Crawler-ByTag<title>

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Element

func Element(doc *html.Node, tagName string) (*html.Node, error)

func WebCrawl

func WebCrawl(findElement, url string)

Types

This section is empty.

Directories

Path Synopsis
crawler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL