jzelinskie / Geddit
Licence: bsd-3-clause
golang reddit api wrapper
Stars: ✭ 158
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
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
Something For Reddit
A Reddit Client For GNOME (with Gtk+ and Python)
Stars: ✭ 151 (-4.43%)
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
Slide
Slide is an open sourced, ad free Reddit browser for Android
Stars: ✭ 1,619 (+924.68%)
Mutual labels: reddit
Reddit Analyzer
find out when and where someone is posting to reddit
Stars: ✭ 105 (-33.54%)
Mutual labels: reddit
Area51
Open source Reddit client for iOS built entirely in Swift
Stars: ✭ 134 (-15.19%)
Mutual labels: reddit
geddit
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].