{"id":17930954,"url":"https://github.com/lovasoa/ambabot","last_synced_at":"2025-04-03T10:24:45.712Z","repository":{"id":229161652,"uuid":"774522788","full_name":"lovasoa/ambabot","owner":"lovasoa","description":"Bot pour vérifier les créneaux disponibles sur paris.kdmid.ru","archived":false,"fork":false,"pushed_at":"2024-03-21T17:34:54.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-08T23:45:44.720Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/lovasoa.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}},"created_at":"2024-03-19T17:38:46.000Z","updated_at":"2024-05-10T04:16:28.000Z","dependencies_parsed_at":"2024-03-22T11:45:57.309Z","dependency_job_id":null,"html_url":"https://github.com/lovasoa/ambabot","commit_stats":null,"previous_names":["lovasoa/ambabot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fambabot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fambabot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fambabot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fambabot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovasoa","download_url":"https://codeload.github.com/lovasoa/ambabot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246982540,"owners_count":20864116,"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":[],"created_at":"2024-10-28T21:18:47.011Z","updated_at":"2025-04-03T10:24:45.685Z","avatar_url":"https://github.com/lovasoa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AmbaBot\n\nAmbaBot is a Python script designed to automate checking for available slots\nat the russian ambassy in Paris.\n\n## Functionality\n\nThe main function of AmbaBot is to handle requests identified by the `AMBASSY_REQUEST_NUMBER`. \n\nThe bot will:\n - Connect to https://paris.kdmid.ru with your `AMBASSY_REQUEST_NUMBER` and `AMBASSY_PROTECTION_CODE`\n - solve the captcha using aws textract\n - extract the current status of your request\n - if there are free slots, send an email to `EMAIL_TO`\n\nThis project contains a Python AWS Lambda function and Terraform configuration for deploying it.\n\n## Prerequisites\n\n- AWS account\n- Python 3.10\n- Pipenv\n- Terraform\n\n## Local Development\n\n1. Install the Python dependencies:\n\n```bash\npipenv install\n```\n\n2. Run the Python script locally:\n\n```bash\npipenv run ambabot\n```\n\n## Deployment\n\n1. Build the Lambda deployment package:\n\n```bash\n./build.sh\n```\n\n2. Initialize Terraform:\n\n```bash\nterraform init\n```\n\n3. Apply the Terraform configuration:\n\n```bash\nterraform apply\n```\n\n## Environment Variables\n\nCreate a `.env` file in the project root with the following variables:\n\n```env\nAWS_REGION=your_aws_region\nAWS_PROFILE=your_aws_profile\n\n#  Номер заявки\nAMBASSY_REQUEST_NUMBER=999999\n\n#  Защитный код \nAMBASSY_PROTECTION_CODE=XXXXXXXX\n\nLOG_LEVEL=DEBUG\nEMAIL_TO=contact@ophir.dev\nEMAIL_FROM=contact@ophir.dev\n```\n\n## Logs\n\nThe logs are available in CloudWatch, in the log group `/aws/lambda/ambabot`.\nTo view the logs, run the following command:\n\n```bash\naws logs get-log-events --log-group-name /aws/lambda/ambabot --log-stream-name $(aws logs describe-log-streams --log-group-name /aws/lambda/ambabot --limit 1 --query 'logStreams[0].logStreamName' --output text)\n```\n    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasoa%2Fambabot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovasoa%2Fambabot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasoa%2Fambabot/lists"}