{"id":19241667,"url":"https://github.com/qwqcode/apple-inventory-bot","last_synced_at":"2025-08-24T06:19:21.484Z","repository":{"id":241475715,"uuid":"621155140","full_name":"qwqcode/apple-inventory-bot","owner":"qwqcode","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-30T05:49:30.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T14:35:00.597Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/qwqcode.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,"publiccode":null,"codemeta":null}},"created_at":"2023-03-30T05:13:38.000Z","updated_at":"2023-03-30T05:45:25.000Z","dependencies_parsed_at":"2024-05-28T16:15:21.747Z","dependency_job_id":null,"html_url":"https://github.com/qwqcode/apple-inventory-bot","commit_stats":null,"previous_names":["qwqcode/apple-inventory-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qwqcode/apple-inventory-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwqcode%2Fapple-inventory-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwqcode%2Fapple-inventory-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwqcode%2Fapple-inventory-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwqcode%2Fapple-inventory-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qwqcode","download_url":"https://codeload.github.com/qwqcode/apple-inventory-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwqcode%2Fapple-inventory-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271805859,"owners_count":24824920,"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-24T02:00:11.135Z","response_time":111,"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":[],"created_at":"2024-11-09T17:12:11.478Z","updated_at":"2025-08-24T06:19:20.879Z","avatar_url":"https://github.com/qwqcode.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apple Store Refurbished Machine Inventory Monitor Bot\n\nhttps://www.apple.com.cn/shop/refurbished/mac/2021-macbook-pro\n\n## Feature\n\n- Lark notification\n- Docker deployment\n- No deps and minimal\n\n## Deploy\n\nDocker Compose to deploy.\n\nFirst, clone the code base:\n\n```sh\ngit clone https://github.com/qwqcode/apple-inventory-bot.git\n```\n\nUse the Docker compose to build container image:\n\n```sh\ndocker compose build\n```\n\nCopy the `.env.example` file to `.env`, and edit it by your preference.\n\n```sh\ncp .env.example .env\n\nvim .env\n```\n\nPlease notice the meaning of the env variables:\n\n|Key|Description|Details|\n|-|-|-|\n|COOKIES|The COOKIE when launching a request|key-value pairs format. |\n|LARK|The lark notification webhook URL| URL start with `https://open.feishu.cn/open-apis/bot/v2/hook/`. |\n|KEYWORDS|The keywords of MODEL TITLE for each inventory available check|use `,` to split the multiple keywords, leave empty to omit.|\n|MEM|The memory size for each inventory available check|e.g. `\"32gb\"`. (leave empty to omit) |\n|DISK|The disk size for each inventory available check|e.g. `\"512gb\"`. (leave empty to omit) |\n|LIST_URL|The request url of the list page in Apple Store|default is `https://www.apple.com.cn/shop/refurbished/mac/2021-macbook-pro`|\n\nLaunch docker container and let it run in background:\n\n```sh\ndocker compose up -d\n```\n\nSome commands may help:\n\n```sh\ndocker compose ps\ndocker compose logs\n```\n\n## App lifecycle\n\nAn inventory check will be performed every Minute.\n\nNotice that the app will be EXIT automatically while the specific product model is fetched and send the Lark notification. So, if you find the docker container is down, it proven that the model you want is available.\n\nIf you do want to prevent exit the app, you could modify the `docker-compose.yml` file and add `restart: always`. But this may cause send lark notification duplicately.\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwqcode%2Fapple-inventory-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqwqcode%2Fapple-inventory-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwqcode%2Fapple-inventory-bot/lists"}