All Projects → jzelinskie → Geddit

jzelinskie / Geddit

Licence: bsd-3-clause
golang reddit api wrapper

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to Geddit

Mvvm Reddit
A companion project for our blog post on better Android software development using MVVM with RxJava.
Stars: ✭ 106 (-32.91%)
Mutual labels:  reddit
Catchup
An app for catching up on things.
Stars: ✭ 1,690 (+969.62%)
Mutual labels:  reddit
Reddit Anti Gif Bot
A Reddit bot providing an mp4 link/mirror for gif submissions
Stars: ✭ 138 (-12.66%)
Mutual labels:  reddit
Imguralbumbot
A reddit bot for linking direct images of single-picture albums
Stars: ✭ 107 (-32.28%)
Mutual labels:  reddit
Sharer.js
🔛 🔖 Create your own social share buttons. No jquery.
Stars: ✭ 1,624 (+927.85%)
Mutual labels:  reddit
Reddit Detective
Play detective on Reddit: Discover political disinformation campaigns, secret influencers and more
Stars: ✭ 129 (-18.35%)
Mutual labels:  reddit
Laravel Reddit
Reddit clone built with Laravel 5
Stars: ✭ 101 (-36.08%)
Mutual labels:  reddit
Something For Reddit
A Reddit Client For GNOME (with Gtk+ and Python)
Stars: ✭ 151 (-4.43%)
Mutual labels:  reddit
Place
An open-source recreation of Reddit's /r/place.
Stars: ✭ 123 (-22.15%)
Mutual labels:  reddit
Reddit Insight
Reddit Analytics built in Angular.js
Stars: ✭ 138 (-12.66%)
Mutual labels:  reddit
Rails Hackernews Reddit Producthunt Clone
hacker news / reddit / social link-sharing website. Built with Rails.
Stars: ✭ 107 (-32.28%)
Mutual labels:  reddit
Slownews
🐢 Bringing slow news for the nervous among us
Stars: ✭ 112 (-29.11%)
Mutual labels:  reddit
Removeddit
View deleted stuff from reddit
Stars: ✭ 130 (-17.72%)
Mutual labels:  reddit
Slide
Slide is an open sourced, ad free Reddit browser for Android
Stars: ✭ 1,619 (+924.68%)
Mutual labels:  reddit
Streaming
r/freemediaheckyeah
Stars: ✭ 147 (-6.96%)
Mutual labels:  reddit
Reddit Analyzer
find out when and where someone is posting to reddit
Stars: ✭ 105 (-33.54%)
Mutual labels:  reddit
Ionic2 Reddit Reader
Ionic 2 Sample App
Stars: ✭ 128 (-18.99%)
Mutual labels:  reddit
Alfred Reddit
Browse Reddit from Alfred
Stars: ✭ 155 (-1.9%)
Mutual labels:  reddit
Flews
A multi-service news app written in Flutter
Stars: ✭ 148 (-6.33%)
Mutual labels:  reddit
Area51
Open source Reddit client for iOS built entirely in Swift
Stars: ✭ 134 (-15.19%)
Mutual labels:  reddit

geddit

GoDoc Go Report Card Build Status

Geddit is a convenient abstraction for the reddit.com API in Go. This library is a WIP. It should have some API coverage, but does not yet include things like the new OAuth model.

examples

See godoc for OAuth examples.

Here is an example usage of the old, cookie authentication method:

(NOTE: You will be heavily rate-limited by reddit's API when using cookies. Consider switching to OAuth).

package main

import (
	"fmt"

	"github.com/jzelinskie/geddit"
)

// Please don't handle errors this way.
func main() {
	// Login to reddit
	session, _ := geddit.NewLoginSession(
		"novelty_account",
		"password",
		"gedditAgent v1",
	)

	// Set listing options
	subOpts := geddit.ListingOptions{
		Limit: 10,
	}

	// Get reddit's default frontpage
	submissions, _ := session.DefaultFrontpage(geddit.DefaultPopularity, subOpts)

	// Get our own personal frontpage
	submissions, _ = session.Frontpage(geddit.DefaultPopularity, subOpts)

	// Get specific subreddit submissions, sorted by new
	submissions, _ = session.SubredditSubmissions("hockey", geddit.NewSubmissions, subOpts)

	// Print title and author of each submission
	for _, s := range submissions {
		fmt.Printf("Title: %s\nAuthor: %s\n\n", s.Title, s.Author)
	}

	// Upvote the first post
	session.Vote(submissions[0], geddit.UpVote)
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].