{"id":16154441,"url":"https://github.com/vtnerd/grokeddit","last_synced_at":"2025-04-06T23:44:47.594Z","repository":{"id":16676239,"uuid":"19432101","full_name":"vtnerd/grokeddit","owner":"vtnerd","description":"Library for interacting with Reddit API in Go!","archived":false,"fork":false,"pushed_at":"2014-11-24T01:04:46.000Z","size":308,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T05:43:53.637Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vtnerd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-04T17:49:38.000Z","updated_at":"2014-11-24T01:04:46.000Z","dependencies_parsed_at":"2022-09-05T02:51:15.048Z","dependency_job_id":null,"html_url":"https://github.com/vtnerd/grokeddit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtnerd%2Fgrokeddit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtnerd%2Fgrokeddit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtnerd%2Fgrokeddit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtnerd%2Fgrokeddit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vtnerd","download_url":"https://codeload.github.com/vtnerd/grokeddit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247569130,"owners_count":20959758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T01:17:25.353Z","updated_at":"2025-04-06T23:44:47.574Z","avatar_url":"https://github.com/vtnerd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"grokeddit\n=========\n\nLibrary for interacting with Reddit API in Go! The library provides an easy interface for retrieving links and comments from Reddit. Example:\n```go\nsubredditsHandle, error := fetcheddit.FetchSubreddits([]string{\"music\", \"movies\"}, fetcheddit.DefaultFetch)\nif error != nil {\n  return error\n}\n\nlinks, error := subredditsHandle.FetchNewLinks(nil)\nif error != nil {\n  return error\n}\n\t\nfor links.HasNext() {\n  link, error := links.GetNext()\n  if error != nil {\n    return error\n  }\n\t\n  log.Printf(\"Link Title: %s\", link.Title)\n} \n```\nThe library automatically fetches a block of elements on a separate goroutine. This allows for a range style interface (the user is not exposed to the individual blocks of elements retrieved), and interleaving of processing and retrieval (elements are being traversed while the OS is waiting for Reddit to respond with the next block of elements).\n\n_This library is a work-in-progress and should be used with caution. The API is unlikely to change, but more tests and features are likely needed to make it usuable for your project. The library does not support writing to Reddit, which may be implemented at a later time._\n\nDesign\n------\nThe library is split into two parts:\n\n1. The **grokeddit** package parses the JSON and massages the data from the server to more relevant types (less strings).\n2. The **fetcheddit** package intelligently retrieves JSON documents, passes the information to grokeddit, then strips unused fields (based on context). Most users will want to use this package, instead of directly using grokeddit.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvtnerd%2Fgrokeddit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvtnerd%2Fgrokeddit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvtnerd%2Fgrokeddit/lists"}