File size: 1,502 Bytes
0d25dbe | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | # PhoneWatchUI: Apple App Store
## Layout
```text
apple_store/
├── dataset/
│ ├── apps.jsonl
│ ├── images.jsonl
│ └── images/<app_id>/{watch,phone}/<position>.png
└── script/
├── app_collect.py
├── watch_app_filter.py
└── image_download.py
```
## Fields
`apps.jsonl` contains `app_id`, `store`, `title`, `description`, `source_url`, and store-specific `metadata`.
`images.jsonl` contains gallery-position identity, dimensions, source URL, SHA-256, relative `image_path`, and device labels. Paths are relative to the directory containing `images.jsonl`; unavailable files have null paths.
`device` is `watch` or `phone`, determined by the source gallery. `device_label_source.method` is `explicit_app_store_gallery`. See [all field definitions](../../README.md#fields).
## Usage
Use Python 3.10+; these scripts require only the standard library. Run from `apple_store/`.
Create `app_ids.txt` with one numeric Apple App ID per line, and choose a fresh output directory:
```sh
python3 script/app_collect.py --app-ids app_ids.txt --output fresh/candidates.jsonl
python3 script/watch_app_filter.py --input fresh/candidates.jsonl --output fresh/apps.jsonl
python3 script/image_download.py --apps fresh/apps.jsonl --output fresh
```
The commands collect app metadata, select watch apps, and download images in order. The final output contains `apps.jsonl`, `images.jsonl`, and `images/`. Use `--help` on each script for options.
|