{"id":29925409,"url":"https://github.com/leewr9/atlottery","last_synced_at":"2026-05-18T19:48:15.407Z","repository":{"id":302774824,"uuid":"1012316253","full_name":"leewr9/atlottery","owner":"leewr9","description":"Korean automatic lottery purchase program.","archived":false,"fork":false,"pushed_at":"2025-07-21T05:05:40.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-21T07:07:21.241Z","etag":null,"topics":["lotto","pyside6","python","selenium"],"latest_commit_sha":null,"homepage":"","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/leewr9.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":"2025-07-02T06:37:58.000Z","updated_at":"2025-07-21T05:03:50.000Z","dependencies_parsed_at":"2025-07-21T07:03:08.324Z","dependency_job_id":"6713efdb-9219-4c58-84cf-94b15893adc3","html_url":"https://github.com/leewr9/atlottery","commit_stats":null,"previous_names":["leewr9/atlottery"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/leewr9/atlottery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leewr9%2Fatlottery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leewr9%2Fatlottery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leewr9%2Fatlottery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leewr9%2Fatlottery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leewr9","download_url":"https://codeload.github.com/leewr9/atlottery/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leewr9%2Fatlottery/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268379954,"owners_count":24241151,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["lotto","pyside6","python","selenium"],"created_at":"2025-08-02T11:37:00.874Z","updated_at":"2026-05-18T19:48:15.390Z","avatar_url":"https://github.com/leewr9.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AutoLottery\n\n[![releases](https://img.shields.io/github/v/release/leewr9/atlottery)](https://github.com/leewr9/atlottery/releases)\n[![exe-build-release](https://github.com/leewr9/atlottery/actions/workflows/exe-build-release.yml/badge.svg)](https://github.com/leewr9/atlottery/actions/workflows/exe-build-release.yml)\n[![weekly-purchase](https://github.com/leewr9/atlottery/actions/workflows/weekly-purchase.yml/badge.svg)](https://github.com/leewr9/atlottery/actions/workflows/weekly-purchase.yml)\n\nThis tool automates Korean lottery ticket purchases, providing both a PySide6-based GUI for interactive use and a command-line script for headless execution, allowing users to buy tickets automatically without opening a web browser.\n\n![main](resources/main.png)\n\n## Feature\n\n- Simple GUI built with PySide6\n- Command-line script for headless execution\n- Automated lottery purchase using Selenium\n- No external web browser required\n- Supports executable build with PyInstaller\n\n## Installation\n\n1. **Clone the repository**\n\n   ```bash\n   git clone https://github.com/leewr9/atlottery.git\n   cd atlottery\n   ```\n\n2. **Install dependencies via uv**\n\n   ```bash\n   uv sync\n   ```\n\n## Usage\n\n### Run Script (Background)\n\n```bash\nuv run python cli_app.py\n```\n\n- Executes the lottery automation script without opening the GUI.\n- Uses environment variables for configuration:\n  - `LOTTERY_USER` → Lottery account ID\n  - `LOTTERY_PASS` → Lottery account password\n  - `LOTTERY_COUNT` → Number of tickets to purchase (default: 5)\n  - `EMAIL_SENDER` → Email account for sending notifications (optional)\n  - `EMAIL_PASSWORD` → Password for the email account (required if `EMAIL_SENDER` is set)\n    - For Gmail, you can use an **App Password** generated here: https://myaccount.google.com/apppasswords\n    - If both `EMAIL_SENDER` and `EMAIL_PASSWORD` are provided, the script can send email notifications about the purchase result.\n- Suitable for running in the background, scheduled tasks, or automated execution in GitHub Actions workflows.\n  - [example workflow](https://github.com/leewr9/atlottery/blob/master/.github/workflows/weekly-purchase.yml)\n\n### Run GUI (Executable)\n\n```bash\nuv run python gui_app.py\n```\n\n- Launches the GUI for interactive use.\n- Make sure the required resource files are correctly placed.\n\n### Build Executable\n\nYou can build an executable file using PyInstaller and the provided spec file.\n\n```bash\nuv run pyinstaller ./atlottery.spec\n```\n\n- The executable will be created in the `dist` folder.\n- Ensure the `atlottery.spec` file is correctly configured with resource paths and build options.\n\n## License\n\nThis project is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleewr9%2Fatlottery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleewr9%2Fatlottery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleewr9%2Fatlottery/lists"}