{"id":18359127,"url":"https://github.com/theinit01/notthepyaaz-xbot","last_synced_at":"2025-04-10T03:17:47.641Z","repository":{"id":246953225,"uuid":"824720907","full_name":"theinit01/NotThePyaaz-XBot","owner":"theinit01","description":"NotThePyaaz is a parody Twitter bot that tweets the funniest and weirdest headlines from the r/notthepyaaz subreddit. It uses NLP to add a humorous twist to each headline and posts them automatically to Twitter, providing daily doses of humor and satire.","archived":false,"fork":false,"pushed_at":"2024-08-07T16:12:49.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T03:17:44.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://x.com/notthepyaaz","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/theinit01.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":"2024-07-05T19:21:48.000Z","updated_at":"2024-08-07T16:12:52.000Z","dependencies_parsed_at":"2024-11-05T22:22:58.305Z","dependency_job_id":"2c592f31-3561-49f8-b848-92147f4cf2c3","html_url":"https://github.com/theinit01/NotThePyaaz-XBot","commit_stats":null,"previous_names":["theinit01/notthepyaaz-xbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theinit01%2FNotThePyaaz-XBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theinit01%2FNotThePyaaz-XBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theinit01%2FNotThePyaaz-XBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theinit01%2FNotThePyaaz-XBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theinit01","download_url":"https://codeload.github.com/theinit01/NotThePyaaz-XBot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248148247,"owners_count":21055548,"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-11-05T22:21:02.196Z","updated_at":"2025-04-10T03:17:47.612Z","avatar_url":"https://github.com/theinit01.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n# NotThePyaaz Twitter Bot 🤖\r\n\u003cp align=\"center\"\u003e\r\n\u003cimg src=\"/assets/diagram.png\"\u003e\r\n\u003c/p\u003e\r\n\r\n\r\nNotThePyaaz is a Twitter bot that fetches the funniest and weirdest headlines from the r/notthepyaaz subreddit and tweets them in a humorous way. It's a parody bot inspired by the NotTheOnion subreddit, delivering daily doses of humor and satire.\r\n\r\n## Features\r\n\r\n-   🤖 Fetches top rising posts from the r/notthepyaaz subreddit.\r\n-   😂 Converts headlines into humorous tweets using a Google Gemini.\r\n-   🐦 Automatically posts the tweets to Twitter.\r\n-   📝 Logs all activities for tracking.\r\n\r\n\r\n## Prerequisites\r\n\r\n-   Python 3.x\r\n-   Reddit API credentials\r\n-   Twitter API credentials\r\n\r\n## Installation \r\n\r\n1. Clone the repository:\r\n  ```bash\r\n  git clone https://github.com/theinit01/NotThePyaaz-XBot.git \r\n  cd NotThePyaaz-XBot\r\n  ```\r\n2. Install the dependencies\r\n`pip install -r requirements.txt`\r\n\r\n3. Set up environment variables:\r\n\t- Create a `.env` file in the root directory.\r\n\t- Add your Reddit, Google Gemini and X (Twitter) API credentials to the `.env` file:\r\n\t\r\n  ```makefile\r\n\tREDDIT_USERNAME=your_reddit_username\r\n\tREDDIT_PASSWORD=your_reddit_password\r\n\tREDDIT_CLIENT_ID=your_reddit_client_id\r\n\tREDDIT_CLIENT_SECRET=your_reddit_client_secret\r\n\tGEMINI_API_KEY=your_gemini_api_key\r\n\tTWITTER_API_KEY=your_twitter_api_key\r\n\tTWITTER_API_SECRET=your_twitter_api_secret\r\n\tBEARER_TOKEN=your_twitter_bearer_token\r\n\tACCESS_TOKEN=your_twitter_access_token\r\n\tACCESS_TOKEN_SECRET=your_twitter_access_token_secret\r\n  ```\r\n\r\n4. Run the main file\r\n`python3 bot.py`\r\n\r\n\r\n\r\n## Contributing \r\nContributions are welcome! If you have any ideas, suggestions, or improvements, feel free to open an issue or submit a pull request. \r\n## License \r\nThis project is licensed under the [MIT License](LICENSE).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheinit01%2Fnotthepyaaz-xbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheinit01%2Fnotthepyaaz-xbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheinit01%2Fnotthepyaaz-xbot/lists"}