{"id":28447601,"url":"https://github.com/basemax/okala-product-ids","last_synced_at":"2026-05-09T05:32:07.669Z","repository":{"id":296676779,"uuid":"993505467","full_name":"BaseMax/okala-product-ids","owner":"BaseMax","description":"A PHP script to fetch and save product IDs from Okala's online store API across multiple categories and store branches.","archived":false,"fork":false,"pushed_at":"2025-06-02T15:25:08.000Z","size":15745,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-03T23:38:22.945Z","etag":null,"topics":["crawler","crawler-okala","crawler-php","crawlers","data","database","ids","ir","iran","json","okala","okala-crawler","php","php-crawler","product"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/BaseMax.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-05-30T23:05:02.000Z","updated_at":"2025-06-02T15:25:13.000Z","dependencies_parsed_at":"2025-06-01T17:25:05.947Z","dependency_job_id":null,"html_url":"https://github.com/BaseMax/okala-product-ids","commit_stats":null,"previous_names":["basemax/okala-product-ids"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BaseMax/okala-product-ids","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fokala-product-ids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fokala-product-ids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fokala-product-ids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fokala-product-ids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/okala-product-ids/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fokala-product-ids/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279168131,"owners_count":26118296,"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-10-16T02:00:06.019Z","response_time":53,"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":["crawler","crawler-okala","crawler-php","crawlers","data","database","ids","ir","iran","json","okala","okala-crawler","php","php-crawler","product"],"created_at":"2025-06-06T12:06:09.363Z","updated_at":"2025-10-16T08:00:02.041Z","avatar_url":"https://github.com/BaseMax.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Okala Product IDs\n\nA PHP script to fetch and save product IDs from Okala's online store API across multiple categories and store branches.\n\nThis tool automates data collection across multiple store branches and product categories, making it ideal for inventory tracking, price monitoring, or data analysis. Efficient, lightweight, and easy to integrate.\n\n## Features\n\n- Reads store IDs from `store-ids.txt`\n- Iterates over a predefined list of product categories\n- Sends HTTP requests to Okala's API for each store-category combination\n- Extracts product IDs and saves them to `product-ids.txt` in `storeId:productId` format\n- Provides real-time feedback via browser while running\n\n## Usage\n\n### 1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/BaseMax/okala-product-ids.git\n   cd okala-product-ids\n   ```\n\n### 2. **Prepare input files:**\n\nAdd one store ID per line in store-ids.txt.\n\n### 3. **Run the script in a browser or CLI:**\n\nPlace `okala-save-product-ids.php` on a local or remote PHP server.\n\n### 4. **Open the script in a web browser or run it from the command line using:**\n\n```bash\nphp okala-save-product-ids.php\n```\n\n## Output\n\nThe product IDs will be saved to product-ids.txt in the format:\n\n```\nstoreId:productId storeId:productId ...\n```\n\n## Requirements\n\nPHP 7.4 or higher\n\ncURL enabled in PHP\n\nNetwork access to Okala's API\n\n## Notes\n\nThe script uses hardcoded headers including a Bearer token. Update the token if it expires.\n\nExecution is not rate-limited beyond a short `usleep(500000)` between requests — be mindful of API rate limits.\n\nUse with permission; scraping public APIs may violate terms of service.\n\n## License\n\nMIT License\n\nCopyright (c) 2025 Max Base\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fokala-product-ids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fokala-product-ids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fokala-product-ids/lists"}