Skip to content

mlabouardy/9gag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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.

Releases

No releases published

Packages

No packages published

Languages