{"id":16382342,"url":"https://github.com/charleprr/redditube","last_synced_at":"2025-03-29T08:31:53.311Z","repository":{"id":38419702,"uuid":"263751758","full_name":"charleprr/redditube","owner":"charleprr","description":"A video generator from Reddit posts and comments","archived":false,"fork":false,"pushed_at":"2024-04-11T18:52:07.000Z","size":327200,"stargazers_count":59,"open_issues_count":2,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T03:41:33.048Z","etag":null,"topics":["canvas","ffmpeg","generator","reddit","reddit-submissions","tts","video","video-generator","youtube"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/redditube","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/charleprr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-13T21:55:48.000Z","updated_at":"2025-01-08T06:15:34.000Z","dependencies_parsed_at":"2024-05-07T01:32:22.190Z","dependency_job_id":null,"html_url":"https://github.com/charleprr/redditube","commit_stats":{"total_commits":166,"total_committers":5,"mean_commits":33.2,"dds":0.3674698795180723,"last_synced_commit":"2c13bbb927888d063b358fa21dc99efd243a65c5"},"previous_names":["charlypoirier/redditube"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charleprr%2Fredditube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charleprr%2Fredditube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charleprr%2Fredditube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charleprr%2Fredditube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charleprr","download_url":"https://codeload.github.com/charleprr/redditube/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246162092,"owners_count":20733351,"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":["canvas","ffmpeg","generator","reddit","reddit-submissions","tts","video","video-generator","youtube"],"created_at":"2024-10-11T04:05:02.131Z","updated_at":"2025-03-29T08:31:52.293Z","avatar_url":"https://github.com/charleprr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redditube\n[![NPM Version](http://img.shields.io/npm/v/redditube.svg?style=flat)](https://www.npmjs.org/package/redditube)\n[![NPM Downloads](https://img.shields.io/npm/dm/redditube.svg?style=flat)](https://npmcharts.com/compare/redditube?minimal=true)\n[![LICENSE](https://img.shields.io/badge/license-MIT-de4328.svg)](https://github.com/charlypoirier/redditube/blob/master/LICENSE)\n\nA video generator from Reddit posts and comments.\u003cbr/\u003e\nWatch [this video](https://streamable.com/7jqjup) made with Redditube.\n\n## Installation\n\n`npm install redditube`\n\nGot installation errors? Install the following packages and try again.\u003cbr/\u003e\n`sudo apt install build-essential libpixman-1-dev libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev`\n\nYou will need to have [FFmpeg](https://ffmpeg.org/download.html) installed on your machine.\u003cbr/\u003e\nYou will also need Reddit credentials.\n- Create a [Reddit account](https://www.reddit.com/register/), if you don't already have one\n- Create a [Reddit app](https://ssl.reddit.com/prefs/apps/)\n    - Give it a name\n    - Set the redirect URI to \"http://127.0.0.1/\"\n\nWe will need the Client ID (random string under the app name) and Client secret later.\n\n## Usage\n```js\nconst Redditube = require(\"redditube\");\n\n// Configure access to Reddit\nRedditube.config({\n    \"userAgent\": \"Redditube\",\n    \"clientId\": \"\",     // Your Client ID\n    \"clientSecret\": \"\", // Your Client secret\n    \"username\": \"\",     // Your Reddit username\n    \"password\": \"\"      // Your Reddit password\n});\n\n// Log start, status, errors and end events (optional)\nRedditube.on(\"start\", () =\u003e console.log(\"Start event!\"));\nRedditube.on(\"status\", status =\u003e console.log(status));\nRedditube.on(\"error\", error =\u003e console.error(error));\nRedditube.on(\"end\", () =\u003e console.log(\"End event!\"));\n\n// Option 1\n// Use .then() and .catch()\nRedditube.make(\"f9cufu\", 3).then(videoPath =\u003e {\n    console.log(videoPath);\n}).catch(error =\u003e {\n    console.log(error);\n});\n\n// Option 2\n// Await a promise (inside an asynchronous function)\nconst videoPath = await Redditube.make(\"f9cufu\", 3);\n```\n\nThe above example makes a video from [this post](https://www.reddit.com/r/AskReddit/comments/f9cufu/what_are_some_ridiculous_history_facts/) (see **f9cufu** in the URL) and with **3** comments.\n\n## Contributing\nFeel free to star the repository, create issues and make pull requests on [GitHub](https://github.com/charlypoirier/redditube).\n\n## License\nReleased under the [MIT](https://github.com/charlypoirier/redditube/blob/master/LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharleprr%2Fredditube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharleprr%2Fredditube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharleprr%2Fredditube/lists"}