Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moqada/speakerdeck
:ship: Fetch info and Download Slide from Speaker Deck for Go
https://github.com/moqada/speakerdeck
Last synced: 3 days ago
JSON representation
:ship: Fetch info and Download Slide from Speaker Deck for Go
- Host: GitHub
- URL: https://github.com/moqada/speakerdeck
- Owner: moqada
- License: mit
- Created: 2016-02-27T12:13:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-14T20:20:27.000Z (almost 6 years ago)
- Last Synced: 2024-06-20T07:24:00.796Z (5 months ago)
- Language: Go
- Homepage: https://godoc.org/github.com/moqada/speakerdeck
- Size: 6.84 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# speakerdeck
:ship: Fetch info and Download Slide from Speaker Deck for Go.
> Unofficial and Implemented by dirty scraping...
## Install
```
$ go get github.com/moqada/speakerdeck
```## Usage
```go
import (
"fmt"
"io/ioutil""github.com/moqada/speakerdeck"
)// Fetch Slide
slide, _ := speakerdeck.GetSlide("https://speakerdeck.com/achiku/pycon-jp-2014-python-plus-hive-on-aws-emrdepin-zhe-falseroguji-ji")
fmt.Println(slide.Title, slide.User.username, slide.Category.Name)
// PyCon JP 2014 Python + Hive on AWS EMRで貧者のログ集計 achiku Technology// Download pdf file as byte[]
pdf, _ := slide.DownloadPDF()// Save pdf file to current directory
ioutil.WriteFile("./" + slide.Slug + ".pdf", pdf, 0644)
```The documentation is on [GoDoc](https://godoc.org/github.com/moqada/speakerdeck)
## CLI
- [cmd/speakerdeck](https://github.com/moqada/speakerdeck/tree/master/cmd/speakerdeck)
[godoc-url]: https://godoc.org/github.com/moqada/speakerdeck
[godoc-image]: https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square
[travis-url]: https://travis-ci.org/moqada/speakerdeck
[travis-image]: https://img.shields.io/travis/moqada/speakerdeck.svg?style=flat-square
[license-url]: http://opensource.org/licenses/MIT
[license-image]: https://img.shields.io/github/license/moqada/speakerdeck.svg?style=flat-square