gotaku

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

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

Go to latest
Published: Feb 24, 2016 License: MIT Imports: 7 Imported by: 0

README

gotaku

Build Status Doc License

🐟 Web GYOTAKU (ウェブ魚拓) Client for Go. This is Go port of gyotaku.

Unofficial and Implemented by dirty scraping...

Install

$ go get github.com/moqada/gotaku

Usage

import (
	"fmt"
	"github.com/moqada/gotaku"
)

// take GYOTAKU
gotaku.Take("http://example.com")
// "http://megalodon.jp/2015-1120-0000-00/example.com"

// listing GYOTAKU urls
gyotaku.List("http://example.com")
// ["http://megalodon.jp/2015-1120-0000-00/example.com", ...]

// listing GYOTAKU urls from HTML string
gyotaku.ListFromHTML("<html>...</html>">)
// ["http://megalodon.jp/2015-1120-0000-00/example.com", ...]

The documentation is on GoDoc

CLI

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(target string) ([]string, error)

List GYOTAKU URLs of target url

func ListFromHTML

func ListFromHTML(content string) ([]string, error)

ListFromHTML return GYOTAKU URLs from HTML string

func Take

func Take(target string) (string, error)

Take a GYOTAKU of target and return url

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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