tableaupublic

package module
v0.0.0-...-4c17ff2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2015 License: MIT Imports: 9 Imported by: 0

README

go-tableaupublic

Helper package for scraping data from Tableau Public

Documentation

Overview

Package tableaupublic is a helper package for scraping data from Tableau Public.

Index

Constants

This section is empty.

Variables

View Source
var ErrWorkbookNotFound = errors.New("workbook not found")

ErrWorkbookNotFound is returned when a request to download a workbook file doesn't return a workbook file.

Functions

func DownloadWorkbookFile

func DownloadWorkbookFile(repoURL string, directory string) (filename string, err error)

DownloadWorkbookFile downloads the workbook to the directory and returns the full path to the downloaded file. The file name will be the repoURL plus a TWB or TWBX extension depending on the file type downloaded.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns true or false whether the err is an ErrWorkbookNotFound error.

Types

type Workbook

type Workbook struct {
	RepoURL         string `json:"workbookRepoUrl"`
	Size            int64  `json:"size"`
	Title           string `json:"title"`
	Description     string `json:"description"`
	ShowInProfile   bool   `json:"showInProfile"`
	AllowDataAccess bool   `json:"allowDataAccess"`
}

Workbook contains information about a Tableau Public workbook.

func AllWorkbooks

func AllWorkbooks(username string) ([]*Workbook, error)

AllWorkbooks gets a list of all workbooks for the username.

Jump to

Keyboard shortcuts

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