{"id":27127813,"url":"https://github.com/ananto30/hadith-every-hour","last_synced_at":"2025-08-08T21:18:18.474Z","repository":{"id":37376193,"uuid":"304255213","full_name":"Ananto30/hadith-every-hour","owner":"Ananto30","description":"📖 GitHub action schedular (cron) that posts a Hadith every hour on Twitter \u0026 Facebook.","archived":false,"fork":false,"pushed_at":"2024-10-29T12:11:57.000Z","size":1370,"stargazers_count":17,"open_issues_count":1,"forks_count":8,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-10-29T14:39:29.401Z","etag":null,"topics":["cron","github-actions","hadith","python","python3","scheduler","tweepy","tweets","twitter","twitter-api","twitter-bot"],"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/Ananto30.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":"2020-10-15T08:11:44.000Z","updated_at":"2024-10-29T12:12:01.000Z","dependencies_parsed_at":"2023-10-16T00:42:34.506Z","dependency_job_id":"221d926d-dfd3-4c9d-8ddd-a1d1e0eb661e","html_url":"https://github.com/Ananto30/hadith-every-hour","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ananto30%2Fhadith-every-hour","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ananto30%2Fhadith-every-hour/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ananto30%2Fhadith-every-hour/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ananto30%2Fhadith-every-hour/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ananto30","download_url":"https://codeload.github.com/Ananto30/hadith-every-hour/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247704511,"owners_count":20982293,"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":["cron","github-actions","hadith","python","python3","scheduler","tweepy","tweets","twitter","twitter-api","twitter-bot"],"created_at":"2025-04-07T17:58:00.822Z","updated_at":"2025-04-07T17:58:01.476Z","avatar_url":"https://github.com/Ananto30.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n \u003ch2 align=\"center\"\u003eHadith Every Hour\u003c/h2\u003e\n \u003cp align=\"center\"\u003e📖 A bot that posts a Hadith every hour on Twitter \u0026 Facebook\u003c/p\u003e\n \u003cp align=\"center\"\u003e\u003ci\u003e(Every 6 hours for now to avoid spamming)\u003c/i\u003e\u003c/p\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  Follow on Twitter \u003ca href=\"https://twitter.com/HadithEveryHour\"\u003e@HadithEveryHour\u003c/a\u003e \u0026 Facebook \u003ca href=\"https://www.facebook.com/HadithEveryHour\"\u003e@HadithEveryHour\u003c/a\u003e\n\u003c/p\u003e\n\n\n### Status\n[![Tweet](https://github.com/Ananto30/hadith-every-hour/actions/workflows/tweet.yml/badge.svg)](https://github.com/Ananto30/hadith-every-hour/actions/workflows/tweet.yml)\n[![Post to Facebook](https://github.com/Ananto30/hadith-every-hour/actions/workflows/post_to_facebook.yml/badge.svg)](https://github.com/Ananto30/hadith-every-hour/actions/workflows/post_to_facebook.yml)\n\nCurrently posting the Hadiths from Sahih al-Bukhari in serial.\n\n### Concept\nIt's really simple. GitHub action is written in \u003ca href=\"/.github/workflows/tweet_hadith.yml\"\u003ethis\u003c/a\u003e file. You can notice a scheduler - \n```\non:\n  schedule:\n    - cron: \"0 */6 * * *\"\n```\nAnd the rest of the process is self explanatory.\n\nA tracker is used to put the latest posted Hadith number in the `hadith_track.json` file. \n\nAPI's are from this project - https://github.com/Ananto30/ask-hadith\n\n### Flow\n```\nGet last Tweeted Hadith number from tracker\n                    ⭣\n          Get Hadith from API \n                    ⭣\n      Make chunks for long Hadith\n                    ⭣\n   Limit chunks for very long Hadith \n                    ⭣\n        Tweet and comment chunks\n                    ⭣\n       Format and post on Facebook\n                    ⭣\n              Update tracker\n```\n\n### Contribution\nThere can be a different approach of Tweeting (as Twitter has character limits on each post) or Hadith Selection, please create an issue and let's discuss about that.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fananto30%2Fhadith-every-hour","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fananto30%2Fhadith-every-hour","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fananto30%2Fhadith-every-hour/lists"}