{"id":21362726,"url":"https://github.com/mrgick/pskgu_bot","last_synced_at":"2025-07-13T03:31:18.070Z","repository":{"id":42435676,"uuid":"342513962","full_name":"mrgick/pskgu_bot","owner":"mrgick","description":"Исходный код бота группы \"Бот ПсковГУ\"","archived":false,"fork":false,"pushed_at":"2023-12-26T17:00:03.000Z","size":214,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-12-27T18:08:54.719Z","etag":null,"topics":["aiohttp-client","bot","lxml","parser","pskgu","vk","vkbottle"],"latest_commit_sha":null,"homepage":"https://vk.com/pskgu_bot","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/mrgick.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}},"created_at":"2021-02-26T08:41:54.000Z","updated_at":"2023-12-26T17:05:51.000Z","dependencies_parsed_at":"2023-12-26T18:06:18.579Z","dependency_job_id":null,"html_url":"https://github.com/mrgick/pskgu_bot","commit_stats":null,"previous_names":[],"tags_count":6,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrgick%2Fpskgu_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrgick%2Fpskgu_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrgick%2Fpskgu_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrgick%2Fpskgu_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrgick","download_url":"https://codeload.github.com/mrgick/pskgu_bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225850156,"owners_count":17534067,"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":["aiohttp-client","bot","lxml","parser","pskgu","vk","vkbottle"],"created_at":"2024-11-22T06:15:18.511Z","updated_at":"2024-11-22T06:15:34.054Z","avatar_url":"https://github.com/mrgick.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Исходный код бота группы \"ПсковГу БОТ\"\nСоздавался в рамках проектной деятельности в университете, но в итоге вырос.\n\nОсновная цель – оперативное получение и обновление информации о изменениях в расписании ([оригинальное расписание](https://rasp.pskgu.ru/) содержит html страницы, которые кешируются браузерами)\n\n# Запуск\n\nМожно запустить либо напрямую\n```bash\npython -m venv .venv\n. .venv/bin/activate\npip install -r requirements.txt\nuvicorn pskgu_bot.main:app\n```\nлибо через докер (есть Dockerfile)\n\n## Настройки\nв файле config.py прописаны настройки проекта.\n\nДля запуска нужно создать переменные среды:\n```bash\nexport TOKEN_VK=\"secret_group_token\"\nexport GROUP_ID=id_group\nexport MONGO_URL=\"mongodb://localhost:27017\"\n```\n\n# Особенности\n- Используется MongoDB для хранения записей о расписании.\n\n- Проект состоит из двух частей\n  1. вк бот (папка bots)\n\n    Вк бот Написан с использованием [vkbottle](https://github.com/vkbottle/vkbottle)\n\n  2. парсер (папка parser)\n\n    Использует [lxml xpath](https://lxml.de/xpathxslt.html#xpath), [aiohttp client](https://docs.aiohttp.org/en/stable/client.html) для асинхроноого и быстрого парсинга оригинального сайта расписания. \n\n\u003e p.s. для работы в heroku/render нужен был веб сервис, поэтому есть fastapi и cron по пингу сайта\n\n# Полезные ссылки\n\n- [группа вк](https://vk.com/pskgu_bot)\n- [апи расписания](https://github.com/mrgick/pskgu_api)\n- [альтернативный сайт расписания](https://github.com/mrgick/rasp_pskgu)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrgick%2Fpskgu_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrgick%2Fpskgu_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrgick%2Fpskgu_bot/lists"}