{"id":20191489,"url":"https://github.com/jarhill0/youtube2reddit","last_synced_at":"2026-05-19T19:04:45.375Z","repository":{"id":90535727,"uuid":"81706874","full_name":"jarhill0/YouTube2Reddit","owner":"jarhill0","description":"Periodically post YouTube videos from specific channels to a specific subreddit","archived":false,"fork":false,"pushed_at":"2022-04-07T08:35:05.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T07:41:40.799Z","etag":null,"topics":["reddit","reddit-bot","youtube-video"],"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/jarhill0.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-12T06:10:32.000Z","updated_at":"2024-03-29T07:21:42.000Z","dependencies_parsed_at":"2023-03-09T17:30:25.871Z","dependency_job_id":null,"html_url":"https://github.com/jarhill0/YouTube2Reddit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jarhill0/YouTube2Reddit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarhill0%2FYouTube2Reddit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarhill0%2FYouTube2Reddit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarhill0%2FYouTube2Reddit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarhill0%2FYouTube2Reddit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jarhill0","download_url":"https://codeload.github.com/jarhill0/YouTube2Reddit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarhill0%2FYouTube2Reddit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264868949,"owners_count":23676094,"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":["reddit","reddit-bot","youtube-video"],"created_at":"2024-11-14T03:49:19.377Z","updated_at":"2026-05-19T19:04:45.323Z","avatar_url":"https://github.com/jarhill0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YouTube2Reddit: a Python script to periodically post YouTube videos from specific channels to a specific subreddit\n\nThis script is designed to be called periodically in its home directory. Its purpose is to post new YouTube videos from predefined YouTube channels to a predefined subreddit.\n\nSince it's designed to be called periodically, I recommend running it on a cronjob at least once a day.\n\n**Setup (may be incomplete)**:\n\n1. Run `pip install praw` and `pip install feedparser` on your system (note: you may have to replace `pip` with `pip3` in those commands, as I had to).\n2. Create an OAuth2 app as described [here](https://github.com/reddit/reddit/wiki/OAuth2). Make sure you are signed into the account you plan to run this script from. Note the client ID and the client secret.\n3. Open the `config.py` file and edit the following variables:\n    - `sub_name`: The name of the subreddit your bot is moderator of.\n4. Create `praw.ini` in the following format:\n    ```\n    \n    [YouTube2Reddit]\n    client_id=\n    client_secret=\n    username=\n    password=\n    \n    ```\n    Define each variable immediately after the = sign in the following way:\n\n    - `client_id`: The client ID from step 2.\n    - `client_secret`: The client secret from step 2.\n    - `username`: The username you want this script to run on. Make sure it has enough karma to post without captchas.\n    - `password`: The password for that account  \n\n    The `praw.ini` file can go either in the directory you plan to execute the script from (as CWD) or in ~/.config/ .\n5. Set up a cronjob (or other method of calling this script) that calls `main.py` at least daily, or as often as you want. The command I use in my cronjob is `python3 ~/YouTube2Reddit/main.py`.\n6. Run `first_run.py` with `python3 first_run.py`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarhill0%2Fyoutube2reddit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjarhill0%2Fyoutube2reddit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarhill0%2Fyoutube2reddit/lists"}