Skip to content
mlabouardyPublic

About

9Gag Golang library

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

9GAG API in Go

CircleCI Go Report Card MIT License

Installing

go get

$ go get -u github.com/mlabouardy/9gag

Example

Getting top memes

package main

import (
	"fmt"
	"github.com/mlabouardy/9gag"
)

func main() {
	gag9 := gag9.New()
	for _, meme := range gag9.Find() {
		fmt.Printf("Description: %s\nImage: %s\n", meme.Description, meme.Image)
	}
}

Filter by tag name

package main

import (
	"fmt"
	"github.com/mlabouardy/9gag"
)

func main() {
	gag9 := gag9.New()
	for _, meme := range gag9.FindByTag("got") {
		fmt.Printf("Description: %s\nImage: %s\n", meme.Description, meme.Image)
	}
}

How to use

http://www.blog.labouardy.com/create-9gag-android-application/

Contributing

You are more than welcome to contribute to this project. Fork and make a Pull Request, or create an Issue if you see any problem.

About

9Gag Golang library

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages