{"id":22128127,"url":"https://github.com/aditeyas/grow-your-x","last_synced_at":"2026-05-08T08:10:56.523Z","repository":{"id":242169331,"uuid":"808848451","full_name":"aditeyaS/grow-your-x","owner":"aditeyaS","description":"A bot that automatically tweets (posts) on Twitter (X).","archived":false,"fork":false,"pushed_at":"2024-06-03T23:23:59.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T08:43:31.850Z","etag":null,"topics":["chatgpt","chatgpt-bot","flask","openapi","python","python-bot","twitter","twitter-api","twitter-bot"],"latest_commit_sha":null,"homepage":"https://x.com/aditeyaaaa","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/aditeyaS.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-06-01T01:02:42.000Z","updated_at":"2024-11-17T05:57:14.000Z","dependencies_parsed_at":"2024-06-03T03:28:06.849Z","dependency_job_id":"8d6ba5ef-9504-41ab-9a4e-bf6a223cf7f8","html_url":"https://github.com/aditeyaS/grow-your-x","commit_stats":null,"previous_names":["aditeyas/grow-your-x"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aditeyaS/grow-your-x","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditeyaS%2Fgrow-your-x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditeyaS%2Fgrow-your-x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditeyaS%2Fgrow-your-x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditeyaS%2Fgrow-your-x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aditeyaS","download_url":"https://codeload.github.com/aditeyaS/grow-your-x/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aditeyaS%2Fgrow-your-x/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32772149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T02:36:36.067Z","status":"ssl_error","status_checked_at":"2026-05-08T02:36:07.210Z","response_time":54,"last_error":"SSL_read: 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":["chatgpt","chatgpt-bot","flask","openapi","python","python-bot","twitter","twitter-api","twitter-bot"],"created_at":"2024-12-01T17:35:52.432Z","updated_at":"2026-05-08T08:10:56.498Z","avatar_url":"https://github.com/aditeyaS.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr/\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/aditeyaS/grow-your-x/blob/main/img/logo.png\" width=\"35%\" /\u003e\n  \u003ch1 align=\"center\"\u003egrow-your-x\u003c/h1\u003e\n  \u003ch4 align=\"center\"\u003eA bot that automatically tweets (posts) on Twitter (X).\u003c/h4\u003e\n  \u003ch4 align=\"center\"\u003eI tweet about Technology, Programming/Coding, Anime, Nature and Travel.\u003c/h4\u003e\n   \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/aditeyaS/grow-your-x/actions\"\u003eCheck status\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/aditeyaS/grow-your-x/issues/new\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/aditeyaS/grow-your-x/issues/new\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n  \u003cdiv\u003e\n    \u003ch4 align=\"center\"\u003eTech Stack\u003c/h4\u003e\n    \u003cp align=\"center\"\u003e\n      \u003ca href=\"https://aditeya.me\"\u003e\n        \u003cimg src=\"https://skillicons.dev/icons?i=py,flask,postman,bots,figma,twitter,vscode,github\" /\u003e\n      \u003c/a\u003e\n    \u003c/p\u003e\n  \u003c/div\u003e\n\u003c/p\u003e\n\n### How to make your own?\n\n##### Testing the app\n\n- Fork and clone the repo (Optional: Leave a ⭐)\n- Create a .env file at the root and paste the following\n\n```\nSECRET=\u003ca_secure_secret_message\u003e\nOPENAI_API_KEY=\u003copenai_api_key\u003e\nOPENAI_ORGANIZATION_ID=\u003copenai_organization_id\u003e\nOPENAI_PROJECT_ID=\u003copenai_project_id\u003e\nX_API_KEY=\u003ctwitter_api_key\u003e\nX_API_KEY_SECRET=\u003ctwitter_api_key_secret\u003e\nX_ACCESS_TOKEN=\u003ctwitter_access_token\u003e\nX_ACCESS_TOKEN_SECRET=\u003ctwitter_access_token_secret\u003e\n```\n\n- Replace the key values with your key. Read about getting [OpenAi key](https://platform.openai.com/docs/overview) and [Twitter key](https://developer.x.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api)\n- Create a virtual env (Optional)\n\n```bash\npython -m venv venv\nsource .venv/bin/activate\n```\n\n- Install the requirements\n\n```bash\npip install -r requirements.txt\n```\n\n- Run your app\n\n```bash\npython main.py\n```\n\n- Test you app\n\n```\ncurl  -H 'Content-Type: application/json'\n      -d '{\"secret\" : \"\u003cthe_secret_you_used_above\u003e\"}' \\\n      -X POST \\\n      \u003cyour_endpoint\u003e/api/tweet\n```\n\n- If you get a success message, congratulations! 🎉\n- If you face any errors connect with me.\n\n##### Personalizing your bot\n\nYou can personalize your bot by exploring [src/clients/OpenAI.py](https://github.com/aditeyaS/grow-your-x/blob/main/src/clients/OpenAI.py) and [src/service/generate_topic.py](https://github.com/aditeyaS/grow-your-x/blob/main/src/service/generate_topic.py)\n\n##### Deploying your app\n\n- Sign in/Sign up at [render.com](https://render.com/) (Recomended: use github to sign in/sign up)\n- Create New web service and connect this repo\n- In the **Start command** enter the following\n\n```\ngunicorn main:bot\n```\n\n- Add all the environemt variables\n- Most likey your app will be deployed without errors\n\n##### Setting up CRON job\n\n- Go to your repository settings\n- In the left sidebar, click on Secrets and variables \u003e Actions\n- Click the New repository secret button.\n  - In the Name enter - URL\n  - In the Secrte enter your POST endpoint which will look something like below\n\n```\nhttps://\u003cyour_unique_app_name\u003e.onrender.com/api/tweet\n```\n\n- Again click the New repository secret button.\n  - In the Name enter - SECRET\n  - In the Secret enter - \u003cthe_secret_you_used_above\u003e\n- Go to the **cron-job.yml** file inside .github/workflows\n- Under schedule update [cron](http://www.cronmaker.com/) according to your needs. (GitHub cron jobs run at UTC time)\n- Push your code.\n\n(FYI: You can also set this job through iPhone shortcut automation and many other ways)\n\n### You are done. Happy Coding. 🎉\n\nYou can check your logs on render if you face issues.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faditeyas%2Fgrow-your-x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faditeyas%2Fgrow-your-x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faditeyas%2Fgrow-your-x/lists"}