metainspector

package
v0.0.0-...-7872a87 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2016 License: MIT Imports: 9 Imported by: 5

Documentation

Overview

go-metainspector is a web scraper package that provides access to basic info and meta tags of a given URL. It includes a command line tool as well. It is inspired by the metainspector gem (https://github.com/jaimeiniesta/metainspector) and completely written in Go. You will find more info on the README file and the `examples` directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version() string

Version of the package

Types

type MetaInspector

type MetaInspector struct {
	// contains filtered or unexported fields
}

func New

func New(uri string) (*MetaInspector, error)

New creates an object with all the URL scraped info

func (MetaInspector) Author

func (m MetaInspector) Author() string

Author of the site

func (MetaInspector) Charset

func (m MetaInspector) Charset() string

Charset of the site

func (MetaInspector) Compatibility

func (m MetaInspector) Compatibility() map[string]string

Compatibility con browsers. specially with IE

func (MetaInspector) Description

func (m MetaInspector) Description() string

Description of the site

func (MetaInspector) Feed

func (m MetaInspector) Feed() string

Feed link of the site

func (MetaInspector) Generator

func (m MetaInspector) Generator() string

Generator of the site

func (MetaInspector) Host

func (m MetaInspector) Host() string

Host of the URL

func (MetaInspector) Images

func (m MetaInspector) Images() []string

Images located on the site

func (MetaInspector) Keywords

func (m MetaInspector) Keywords() []string

Keywords of the site

func (MetaInspector) Language

func (m MetaInspector) Language() string

Language of the site

func (m MetaInspector) Links() []string

Links found on the site

func (MetaInspector) RootURL

func (m MetaInspector) RootURL() string

RootURL, with no path and slashes

func (MetaInspector) Scheme

func (m MetaInspector) Scheme() string

Scheme of the URL, `http` by default

func (MetaInspector) Title

func (m MetaInspector) Title() string

Title of the site

func (MetaInspector) Url

func (m MetaInspector) Url() string

Url provided by the Metainspector

Jump to

Keyboard shortcuts

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