{"id":21548139,"url":"https://github.com/morrismorrison/ai-blog","last_synced_at":"2025-03-18T01:47:47.725Z","repository":{"id":204787591,"uuid":"712661005","full_name":"MorrisMorrison/ai-blog","owner":"MorrisMorrison","description":"automatically generate and publish blog posts","archived":false,"fork":false,"pushed_at":"2023-11-21T10:03:59.000Z","size":15,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T09:28:01.380Z","etag":null,"topics":["chatgpt","hashnode","python"],"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/MorrisMorrison.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":"2023-10-31T23:28:39.000Z","updated_at":"2024-11-12T23:22:42.000Z","dependencies_parsed_at":"2023-11-20T23:32:06.347Z","dependency_job_id":"507e1363-efd6-41ca-b4f8-3f6b1099f834","html_url":"https://github.com/MorrisMorrison/ai-blog","commit_stats":null,"previous_names":["morrismorrison/ai-blog"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorrisMorrison%2Fai-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorrisMorrison%2Fai-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorrisMorrison%2Fai-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorrisMorrison%2Fai-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MorrisMorrison","download_url":"https://codeload.github.com/MorrisMorrison/ai-blog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244141573,"owners_count":20404835,"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":["chatgpt","hashnode","python"],"created_at":"2024-11-24T06:17:36.908Z","updated_at":"2025-03-18T01:47:47.697Z","avatar_url":"https://github.com/MorrisMorrison.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ai-blog\nThis Python script leverages ChatGPT to generate blog posts and publishes them to Hashnode.\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/MorrisMorrison/ai-blog.git\n   cd ai-blog\n   ```\n2. Install the required dependencies:\n   `pip install -r requirements.txt`\n   \n## Configuration\nBefore running the script, make sure to set the following environment variables:\n   - **CHATGPT_API_KEY**: Your ChatGPT API key.\n   - **HASNODE_API_KEY**: Your Hashnode API key.\n   - **HASNODE_PUBLICATION_ID**: The Hashnode publication ID - can be retrieved via Hashnode API or from the URL of the publication/blog dashboard.\n\nYou can set your prompt in `generate-content-prompt.txt`\n\n## Usage\nRun the script with:\n\n- `python3 main.py`\n- `python3 main.py --scheduled` - schedules the script.\n  Scheduling can currently only be configured by manipulating the code\n\nThis will prompt the script to generate a blog post using ChatGPT and publish it to Hashnode.\n\n## Contributing\nIf you'd like to contribute to this project, please follow these steps:\n\n- Fork the repository.\n- Create a new branch for your feature or bug fix: git checkout -b feature/my-feature.\n- Make your changes and commit them: git commit -m 'Add some feature'.\n- Push to the branch: git push origin feature/my-feature.\n- Submit a pull request.\n\n## License\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorrismorrison%2Fai-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorrismorrison%2Fai-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorrismorrison%2Fai-blog/lists"}