{"id":29692186,"url":"https://github.com/rsc-dev/linkedin-post-bot","last_synced_at":"2025-07-23T07:34:22.473Z","repository":{"id":257759524,"uuid":"859242897","full_name":"rsc-dev/linkedin-post-bot","owner":"rsc-dev","description":"A Python script that fetches trending cybersecurity news and generates cynical, ironic LinkedIn posts using OpenAI's GPT models","archived":false,"fork":false,"pushed_at":"2024-09-18T10:51:24.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T23:57:03.117Z","etag":null,"topics":["cynical","ironic","linkedin","sarcasm"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rsc-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-09-18T10:33:23.000Z","updated_at":"2024-09-27T12:49:31.000Z","dependencies_parsed_at":"2024-09-18T14:26:26.237Z","dependency_job_id":null,"html_url":"https://github.com/rsc-dev/linkedin-post-bot","commit_stats":null,"previous_names":["rsc-dev/linkedin-post-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rsc-dev/linkedin-post-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsc-dev%2Flinkedin-post-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsc-dev%2Flinkedin-post-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsc-dev%2Flinkedin-post-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsc-dev%2Flinkedin-post-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsc-dev","download_url":"https://codeload.github.com/rsc-dev/linkedin-post-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsc-dev%2Flinkedin-post-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266639156,"owners_count":23960758,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cynical","ironic","linkedin","sarcasm"],"created_at":"2025-07-23T07:34:21.763Z","updated_at":"2025-07-23T07:34:22.456Z","avatar_url":"https://github.com/rsc-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cynical Cybersecurity LinkedIn Post Generator\nThis script generates a cynical and ironic LinkedIn post based on the latest trending cybersecurity topics. It fetches current cybersecurity news headlines and uses the OpenAI API to create a witty post that you can manually share on LinkedIn or any other platform.\n\n## Features\n* Fetches the latest cybersecurity news headlines using NewsAPI.\n* Generates a cynical and ironic post using OpenAI's GPT models.\n* Allows user interaction to accept, reject, or refine the generated post.\n* Utilizes Poetry for dependency management.\n\n## Prerequisites\n* Python 3.7 or higher\n* Poetry for package management\n* An OpenAI API key\n* A NewsAPI API key\n\n## Installation\n1. Clone the Repository\n```bash\ngit clone https://github.com/rsc-dev/linkedin-post-bot\ncd linkedin-post-bot\n```\n\n2. Set Up Environment Variables\n\nCreate a .env file in the project root directory and add your API keys:\n\n```bash\nOPENAI_API_KEY=your_openai_api_key_here\nNEWSAPI_KEY=your_newsapi_api_key_here\n```\n**Note:** Replace your_openai_api_key_here and your_newsapi_api_key_here with your actual API keys.\n\n## Install Dependencies with Poetry\n\nEnsure you have Poetry installed. If not, install it using the following command:\n\n```bash\ncurl -sSL https://install.python-poetry.org | python3 -\n```\n\nInstall the project dependencies:\n\n```bash\npoetry install\n```\n\n## Usage\nActivate the Poetry shell:\n\n\n```bash\ncd src\npoetry shell\n```\n\nRun the script:\n```bash\npython linkedin-post-bot.py\n```\n\n## How It Works\n1. **Fetches Cybersecurity Topics**  \nThe script uses the NewsAPI to fetch the latest headlines related to cybersecurity.\n\n2. **Generates a Cynical Post**  \nIt sends the collected topics to the OpenAI API, which generates a cynical and ironic LinkedIn post.\n\n3. **User Interaction**  \nYou can review the generated post and choose to:  \n    * Accept and use it.\n    * Reject and exit.\n    * Provide additional feedback to refine the post.\n\n## Dependencies\n* `requests`\n* `python-dotenv`\n* `openai`\n\nThese are managed by Poetry and specified in the pyproject.toml file.\n\n## Important Notes\n* **API Keys Security:** Ensure your .env file is added to .gitignore to prevent your API keys from being pushed to version control.\n* **Compliance:** Make sure to comply with OpenAI's Usage Policies and NewsAPI's terms of service.\n* **Manual Posting:** The script does not post directly to LinkedIn. You need to manually copy and paste the accepted post.\n\n## License\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsc-dev%2Flinkedin-post-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsc-dev%2Flinkedin-post-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsc-dev%2Flinkedin-post-bot/lists"}