{"id":13546751,"url":"https://github.com/lumenwrites/mastodon-hnbot","last_synced_at":"2025-04-02T18:32:28.919Z","repository":{"id":71195326,"uuid":"87591605","full_name":"lumenwrites/mastodon-hnbot","owner":"lumenwrites","description":"A bot posting the Hacker News stories with 100+ points to Mastodon","archived":false,"fork":false,"pushed_at":"2018-09-11T07:56:56.000Z","size":507,"stargazers_count":38,"open_issues_count":0,"forks_count":6,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-04-16T04:08:28.310Z","etag":null,"topics":["bot","hacker-news","mastodon"],"latest_commit_sha":null,"homepage":"https://mastodon.social/@HackerNewsBot","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/lumenwrites.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-04-07T22:29:45.000Z","updated_at":"2023-11-07T12:45:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb6fb5b9-481e-4d85-b0f9-035fc581a1bb","html_url":"https://github.com/lumenwrites/mastodon-hnbot","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"d0d60643531a5d182241ed4765543a1c98ca4b02"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumenwrites%2Fmastodon-hnbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumenwrites%2Fmastodon-hnbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumenwrites%2Fmastodon-hnbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumenwrites%2Fmastodon-hnbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lumenwrites","download_url":"https://codeload.github.com/lumenwrites/mastodon-hnbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246870145,"owners_count":20847251,"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":["bot","hacker-news","mastodon"],"created_at":"2024-08-01T12:00:44.303Z","updated_at":"2025-04-02T18:32:28.584Z","avatar_url":"https://github.com/lumenwrites.png","language":"Python","funding_links":[],"categories":["机器人","Python"],"sub_categories":[],"readme":"A bot posting the Hacker News stories with 100+ points to [Mastodon](https://github.com/tootsuite/mastodon).\n\nhttps://hackertribe.io/@HackerNewsBot\n\n![](https://raw.githubusercontent.com/raymestalez/mastodon-hnbot/master/screenshot.png)\n\n# Usage\n\nCreate an account for the bot. For convenience you can use youremail+hnbot@gmail.com, to avoid registering a separate email.\n\nThen run the command:\n\n```\npython3 ./hnbot.py \"youremail@example.com\" \"yourpassword\" \"https://instancename.com\"\n```\n\n# Run it regularly\n\nYou can use cron to run the bot regularly.\n\nRun the command:\n\n```\ncrontab -e\n```\n\nAnd at the end of the file add the line:\n\n```\n0,30 * * * * python3 /path/to/the/script/hnbot.py \"youremail@gmail.com\" \"yourpassword\" \"https://instancename.com\"\n```\n\n(this will execute every 30 minutes)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flumenwrites%2Fmastodon-hnbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flumenwrites%2Fmastodon-hnbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flumenwrites%2Fmastodon-hnbot/lists"}