{"id":49416684,"url":"https://github.com/nsevent/video_generator_for_reddit","last_synced_at":"2026-04-29T03:11:00.013Z","repository":{"id":50188464,"uuid":"200299971","full_name":"NSEvent/video_generator_for_reddit","owner":"NSEvent","description":"A tool that creates videos out of reddit-hosted video posts, given a url to the post.","archived":false,"fork":false,"pushed_at":"2022-12-08T05:58:20.000Z","size":3017,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-09-29T12:57:06.948Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NSEvent.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":"2019-08-02T21:29:20.000Z","updated_at":"2023-09-29T12:57:06.948Z","dependencies_parsed_at":"2023-01-24T14:15:10.113Z","dependency_job_id":null,"html_url":"https://github.com/NSEvent/video_generator_for_reddit","commit_stats":null,"previous_names":["nsevent/video_generator_for_reddit"],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/NSEvent/video_generator_for_reddit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSEvent%2Fvideo_generator_for_reddit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSEvent%2Fvideo_generator_for_reddit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSEvent%2Fvideo_generator_for_reddit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSEvent%2Fvideo_generator_for_reddit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NSEvent","download_url":"https://codeload.github.com/NSEvent/video_generator_for_reddit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSEvent%2Fvideo_generator_for_reddit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32408555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T02:37:21.628Z","status":"ssl_error","status_checked_at":"2026-04-29T02:36:50.947Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-04-29T03:10:59.840Z","updated_at":"2026-04-29T03:11:00.004Z","avatar_url":"https://github.com/NSEvent.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# video_generator_for_reddit\nA tool that creates videos out of reddit-hosted video posts, given a url to the post.\n\n## Examples of generated videos\n1. [ORIGINAL POST](https://www.reddit.com/r/aww/comments/c5xurx/my_dad_sent_me_this_and_i_have_a_new_favorite/) |  [VIDEO](https://giphy.com/gifs/Q7joL1dJHT6kARdV5T)\n2. [ORIGINAL POST](https://www.reddit.com/r/aww/comments/clheav/how_im_greeted_each_time_i_come_home_from_work/) |  [VIDEO](https://giphy.com/gifs/YS5zvunBQIMtrtMEek)\n3. [ORIGINAL POST](https://www.reddit.com/r/aww/comments/clk47p/ups_man_took_a_moment_yesterday_for_himself_it/) |  [VIDEO](https://giphy.com/gifs/W22iA9jWyFDXi6p7y2)\n\n## About\nThis program scrapes post information using [PRAW](https://praw.readthedocs.io/en/latest/#).\n\nThe program performs its video manipulation using [ffmpy](https://ffmpeg.org/)\n- downloads a video from a reddit-hosted video post\n- normalizes the video dimensions to 1920x1080\n- overlays top reddit comments scrolling up the left sidebar\n- overlays a gif on the bottom right corner\n\nThe video dimensions are normalized to 1920x1080 to be easily combined to create a compilation later.\n\nTop tags for each video are drawn from top comments. [nltk](http://www.nltk.org/) is used to select 1-word, 2-word-phrase, and 3-word-phrase tags to represent a post. This feature works best if the post has a large number of comments.\n\nTested with Python 3.7.0 in Linux environment\n\n# To try yourself\n1. Create a [new reddit app](https://www.reddit.com/prefs/apps). Choose \"script\" as the type of app. Use `http://localhost:8080` for the \"redirect uri\".\n2. Enter your reddit app information in test.py.\n3. Add a call to `scrape_video(your_url_goes_here)` in main.py.\n4. Install the required dependencies listed below.\n\n## Install required dependencies\n```python\nsudo apt install ffmpeg\n\npip install praw\npip install nltk\n\npython3\nimport nltk\n\nnltk.download('punkt')\nnltk.download('stopwords')\nnltk.download('averaged_perceptron_tagger')\n```\n\n## Run\n```bash\npython3 main.py\n```\nFinished videos are stored in `\u003csubreddit_name\u003e/gif/`\n\n# Author\nKevin Tang\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsevent%2Fvideo_generator_for_reddit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsevent%2Fvideo_generator_for_reddit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsevent%2Fvideo_generator_for_reddit/lists"}