webpage

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2015 License: MIT Imports: 4 Imported by: 0

README

go-webpage

travis ci

go-webpage is a wrapper package of goquery.

Installation

$ go get github.com/PuerkitoBio/goquery
$ go get github.com/yterajima/go-webpage

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebPage

type WebPage struct {
	Title       string
	Keywords    string
	Description string
	BodyText    string
}

WebPage is the type that represents the pages of the website

func New

func New(page []byte) WebPage

New generate WebPage structure

func (*WebPage) GetBodyText

func (wp *WebPage) GetBodyText() string

GetBodyText return text in <body> tag

func (*WebPage) GetDescription

func (wp *WebPage) GetDescription() string

GetDescription return content of <meta name="description" ~>

func (*WebPage) GetKeywords

func (wp *WebPage) GetKeywords() string

GetKeywords return content of <meta name="keywords" ~>

func (*WebPage) GetTitle

func (wp *WebPage) GetTitle() string

GetTitle return text in <title> tag

Jump to

Keyboard shortcuts

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