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 ¶
- func Version() string
- type MetaInspector
- func (m MetaInspector) Author() string
- func (m MetaInspector) Charset() string
- func (m MetaInspector) Compatibility() map[string]string
- func (m MetaInspector) Description() string
- func (m MetaInspector) Feed() string
- func (m MetaInspector) Generator() string
- func (m MetaInspector) Host() string
- func (m MetaInspector) Images() []string
- func (m MetaInspector) Keywords() []string
- func (m MetaInspector) Language() string
- func (m MetaInspector) Links() []string
- func (m MetaInspector) RootURL() string
- func (m MetaInspector) Scheme() string
- func (m MetaInspector) Title() string
- func (m MetaInspector) Url() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) 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) 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
Click to show internal directories.
Click to hide internal directories.