{"id":20062445,"url":"https://github.com/marado/hattai-fortune","last_synced_at":"2025-07-19T00:36:52.572Z","repository":{"id":10794929,"uuid":"13065750","full_name":"marado/hattai-fortune","owner":"marado","description":"Hattai's Fortune: a script that gives news","archived":false,"fork":false,"pushed_at":"2024-11-11T18:01:49.000Z","size":547,"stargazers_count":2,"open_issues_count":5,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-06T09:01:56.927Z","etag":null,"topics":["feed","news","python","script"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marado.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,"zenodo":null}},"created_at":"2013-09-24T13:51:51.000Z","updated_at":"2024-11-11T18:01:52.000Z","dependencies_parsed_at":"2024-11-11T19:18:23.138Z","dependency_job_id":"6622fd64-4afa-4307-a631-9bea9d4ace24","html_url":"https://github.com/marado/hattai-fortune","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marado/hattai-fortune","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marado%2Fhattai-fortune","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marado%2Fhattai-fortune/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marado%2Fhattai-fortune/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marado%2Fhattai-fortune/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marado","download_url":"https://codeload.github.com/marado/hattai-fortune/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marado%2Fhattai-fortune/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265863793,"owners_count":23840888,"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":["feed","news","python","script"],"created_at":"2024-11-13T13:29:34.520Z","updated_at":"2025-07-19T00:36:52.522Z","avatar_url":"https://github.com/marado.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"hattai-fortune\n==============\n\nHattai's Fortune: a script to be used by a bot, that gives news.\n\nThis script depends on feedparser, which should be installed on your system.\n\nThis script depends on python 3.2 or above.\n\n## Script's behaviour\n\nWhen run the script will:\n\n1. Read the given (hardcoded) RSS feed:\n   (at this moment, Google News' feed for in-Portuguese Portugal News)\n2. Exclude the articles which contain any word from a given list of \"bad words\"\n   (the match is case **insensitive**)\n3. Exclude articles which have an empty title\n4. Add new articles to the article list\n5. Trim the article list up to a given maximum size\n6. Pick the \"best\" article from the article list and:\n    1. Store the title in a file called _title_\n    2. Store the URL in a file called _link_\n    2. Store the description in a file called _desc_\n    3. Print out the title to STDOUT\n7. Save the current article list for the next run\n\n\nThe way the \"best article\" is chosen is roughly like this:\n\n- Look for the articles which have been used the least (ideally never)\n- Pick the most recent one\n\nWe assume the feed delivers the articles ordered by date, so no check is done\non the script.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarado%2Fhattai-fortune","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarado%2Fhattai-fortune","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarado%2Fhattai-fortune/lists"}