{"id":21259939,"url":"https://github.com/madebyadem/nieuwsbot","last_synced_at":"2026-05-09T01:37:12.129Z","repository":{"id":248985845,"uuid":"830418847","full_name":"MadeByAdem/NieuwsBot","owner":"MadeByAdem","description":"This repository contains the source code for a project that includes functionality for scheduling news feeds, fetching the latest news, and sending them to a Telegram bot.","archived":false,"fork":false,"pushed_at":"2024-07-18T16:00:30.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T21:47:16.230Z","etag":null,"topics":["bash","linux","python","telegram"],"latest_commit_sha":null,"homepage":"https://madebyadem.dev","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/MadeByAdem.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-07-18T08:33:47.000Z","updated_at":"2024-07-18T16:00:34.000Z","dependencies_parsed_at":"2025-01-20T05:17:58.922Z","dependency_job_id":null,"html_url":"https://github.com/MadeByAdem/NieuwsBot","commit_stats":null,"previous_names":["madebyadem/nieuwsbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadeByAdem%2FNieuwsBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadeByAdem%2FNieuwsBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadeByAdem%2FNieuwsBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadeByAdem%2FNieuwsBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MadeByAdem","download_url":"https://codeload.github.com/MadeByAdem/NieuwsBot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243695514,"owners_count":20332626,"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":["bash","linux","python","telegram"],"created_at":"2024-11-21T04:16:01.886Z","updated_at":"2026-05-09T01:37:07.090Z","avatar_url":"https://github.com/MadeByAdem.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dutch Telegram News Bot\n\nThis repository contains the source code for a project that includes functionality for scheduling news feeds, fetching the latest news, and sending them to a Telegram bot. \n\n## Table of Contents\n- [Installation](#installation)\n- [Usage](#usage)\n- [Configuration](#configuration)\n- [Linux Service Setup](#linux-service-setup)\n- [Modules](#modules)\n- [License](#license)\n\n## Installation\n\nTo install the required dependencies, run:\n\n```bash\npip install -r requirements.txt\n```\n\n## Configuration\nMake sure to configure the environment variables needed for your project. You can use the `.env.example` file as a template. Copy it to .env and update the values accordingly.\n\n```bash\ncp .env.example .env\n```\n\n### Prerequisites\n\n- Python 3.x\n- `pip` package manager\n- A Telegram bot token. You can get one by creating a bot through the [BotFather](https://core.telegram.org/bots#botfather).\n- Encryption key. [Check documentation how to get one](https://cryptography.io/en/latest/fernet/).\n\n## Environment Variables\n`BOT_TOKEN`: Your Telegram bot API key.\n\n`SECRET_KEY`: Encryption key.\n\n## Usage\nYou can start the application by running the appropriate Python scripts. Here is an example of how to run the main components:\nFor the regular bot polling:\n```bash\npython telegram_utils.py\n```\n\nFor the scheduled tasks:\n```bash\npython schedule_utils.py\n```\n\n## Linux Service Setup\nTo set up the project as a service on a Linux system, you need to create two service files: `nieuwsbot.service` and `nieuwsbot-schedule.service`.\n\n### nieuwsbot.service\nCreate a file named `nieuwsbot.service` with the following content:\n\n```ini\n[Unit]\nDescription=NieuwsBot\n\n[Service]\nExecStart=/your/path/to/nieuwsbot/venv/bin/python /your/path/to/nieuwsbot/telegram_utils.py\nWorkingDirectory=/your/path/to/nieuwsbot\nRestart=always\nUser=root\n\n[Install]\nWantedBy=default.target\n```\n\n### nieuwsbot-schedule.service\nCreate a file named `nieuwsbot-schedule.service` with the following content and adjust the path to the python file:\n\n```ini\n[Unit]\nDescription=NieuwsBot Schedule\n\n[Service]\nExecStart=/your/path/to/nieuwsbot/venv/bin/python /your/path/to/nieuwsbot/schedule_utils.py\nWorkingDirectory=/your/path/to/nieuwsbot\nRestart=always\nUser=root\n\n[Install]\nWantedBy=default.target\n```\n\n### Enabling the Services\n1. Copy the `nieuwsbot.service` and `nieuwsbot-schedule.service` files to the `/etc/systemd/system` directory.\n\n```bash\nsudo cp nieuwsbot.service /etc/systemd/system/\nsudo cp nieuwsbot-schedule.service /etc/systemd/system/\n```\n\n2. Reload the systemd daemon.\n\n```bash\nsudo systemctl daemon-reload\n```\n\n3. Enable and start the services.\n\n```bash\nsudo systemctl enable nieuwsbot.service\nsudo systemctl start nieuwsbot.service\nsudo systemctl enable nieuwsbot-schedule.service\nsudo systemctl start nieuwsbot-schedule.service\n```\n\n## Modules\n### latest_news.py\nThis module fetches the latest news using a specified news API.\n\n### schedule_utils.py\nThis module contains utilities for scheduling tasks using the schedule library.\n\n### telegram_utils.py\nThis module provides utilities for interacting with Telegram using the telebot library.\n\n### Requirements\nThe project requires the following Python packages:\n\n- feedparser\n- telebot\n- schedule\n- latest_news\n- Fernet\n- ratelimit\n- cryptography\n\n## License\nThis project is licensed under the Custom License. See the [LICENSE](LICENSE) file for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadebyadem%2Fnieuwsbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadebyadem%2Fnieuwsbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadebyadem%2Fnieuwsbot/lists"}