{"id":16771511,"url":"https://github.com/meysam81/reddit-scheduled-submit","last_synced_at":"2025-04-10T19:43:56.941Z","repository":{"id":252883248,"uuid":"841782435","full_name":"meysam81/reddit-scheduled-submit","owner":"meysam81","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-31T17:45:00.000Z","size":95,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T11:36:06.387Z","etag":null,"topics":["api-wrapper","automation","bot","ci-cd","content-publishing","devops","github-actions","github-workflow","oauth2","praw","python","python-reddit-api","reddit","reddit-api","reddit-automation","reddit-bot","reddit-integration","scripting","social-media","social-media-automation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meysam81.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["meysam81"]}},"created_at":"2024-08-13T03:16:44.000Z","updated_at":"2025-03-15T11:07:13.000Z","dependencies_parsed_at":"2024-08-28T00:25:35.061Z","dependency_job_id":"c7fa0815-5f42-485e-b028-4cac687fff85","html_url":"https://github.com/meysam81/reddit-scheduled-submit","commit_stats":null,"previous_names":["meysam81/reddit-scheduled-submit"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meysam81%2Freddit-scheduled-submit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meysam81%2Freddit-scheduled-submit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meysam81%2Freddit-scheduled-submit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meysam81%2Freddit-scheduled-submit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meysam81","download_url":"https://codeload.github.com/meysam81/reddit-scheduled-submit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281424,"owners_count":21077423,"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":["api-wrapper","automation","bot","ci-cd","content-publishing","devops","github-actions","github-workflow","oauth2","praw","python","python-reddit-api","reddit","reddit-api","reddit-automation","reddit-bot","reddit-integration","scripting","social-media","social-media-automation"],"created_at":"2024-10-13T06:28:19.314Z","updated_at":"2025-04-10T19:43:56.933Z","avatar_url":"https://github.com/meysam81.png","language":"Python","funding_links":["https://github.com/sponsors/meysam81"],"categories":[],"sub_categories":[],"readme":"# Reddit Scheduled Submit\n\n[![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://developer.mend.io/github/meysam81/reddit-scheduled-submit)\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Reddit Scheduled Submit](#reddit-scheduled-submit)\n  - [Features](#features)\n  - [Prerequisites](#prerequisites)\n  - [Installation](#installation)\n  - [Usage](#usage)\n    - [Local Usage](#local-usage)\n    - [Docker](#docker)\n    - [GitHub Actions Usage](#github-actions-usage)\n  - [Contributing](#contributing)\n  - [License](#license)\n  - [Disclaimer](#disclaimer)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\nThis repository contains a simple Python script that uses\nthe [PRAW] (Python Reddit API Wrapper) library to post a\nmessage to Reddit.\n\nIt's designed to be easily integrated into GitHub Actions\nworkflows.\n\n## Features\n\n- Can be run as a GitHub Action\n- Customizable title and message content\n\n## Prerequisites\n\nTo use this script, you need:\n\n1. A Reddit account\n2. A Reddit application (create one at [here][reddit-apps])\n3. Python 3.12 or higher\n\n## Installation\n\nClone this repository:\n\n```sh\ngit clone https://github.com/meysam81/reddit-scheduled-submit\n```\n\nInstall the required dependencies:\n\n```sh\npip install -r requirements.txt\n```\n\n## Usage\n\n### Local Usage\n\n```sh\nexport REDDIT_CLIENT_ID=\"CHANGE_THIS\"\nexport REDDIT_CLIENT_SECRET=\"CHANGE_THIS\"\nexport REDDIT_USERNAME=\"CHANGE_THIS\"\nexport REDDIT_PASSWORD=\"CHANGE_THIS\"\nexport REDDIT_SUBREDDIT=\"CHANGE_THIS\"\n\n./main.py --title \"Hello, Reddit!\" --message \"This is a test message.\"\n```\n\n### Docker\n\nTo run the Docker container, you can use the following command:\n\n```sh\ndocker run \\\n  --rm \\\n  --name reddit-scheduled-submit \\\n  -e REDDIT_CLIENT_ID=\"CHANGE_THIS\" \\\n  -e REDDIT_CLIENT_SECRET=\"CHANGE_THIS\" \\\n  -e REDDIT_USERNAME=\"CHANGE_THIS\" \\\n  -e REDDIT_PASSWORD=\"CHANGE_THIS\" \\\n  -e REDDIT_SUBREDDIT=\"CHANGE_THIS\" \\\n  ghcr.io/meysam81/reddit-scheduled-submit:v1 \\\n  --title \"Hello, Reddit!\" \\\n  --message \"This is a test message.\"\n```\n\n### GitHub Actions Usage\n\nTo use this script as a GitHub Action, you can create a workflow file (e.g.,\n`.github/workflows/ci.yml`) with the following content:\n\n```yaml\nname: ci\n\non:\n  workflow_dispatch:\n    inputs:\n      title:\n        description: Post title\n        required: true\n      message:\n        description: Post message\n        required: true\n      subreddit:\n        default: r/test\n        description: Subreddit to post to\n        required: false\n\njobs:\n  reddit-scheduled-submit:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Post to Reddit\n        uses: meysam81/reddit-scheduled-submit@v1\n        with:\n          client-id: ${{ secrets.REDDIT_CLIENT_ID }}\n          client-secret: ${{ secrets.REDDIT_CLIENT_SECRET }}\n          username: ${{ secrets.REDDIT_USERNAME }}\n          password: ${{ secrets.REDDIT_PASSWORD }}\n          subreddit: ${{ github.event.inputs.subreddit }}\n          message: ${{ github.event.inputs.message }}\n          title: ${{ github.event.inputs.title }}\n```\n\nMake sure to set up the following secrets in your GitHub\nrepository:\n\n- `REDDIT_CLIENT_ID`\n- `REDDIT_CLIENT_SECRET`\n- `REDDIT_USERNAME`\n- `REDDIT_PASSWORD`\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a\nPull Request.\n\n## License\n\nThis project is licensed under the Apache-2.0 License -\nsee the [LICENSE](LICENSE) file for details.\n\n## Disclaimer\n\nThis script is for educational purposes only. Make sure to\ncomply with Reddit's API terms of service and posting\nguidelines when using this script.\n\n[reddit-apps]: https://www.reddit.com/prefs/apps\n[PRAW]: https://praw.readthedocs.io/en/latest/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeysam81%2Freddit-scheduled-submit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeysam81%2Freddit-scheduled-submit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeysam81%2Freddit-scheduled-submit/lists"}