{"id":16686373,"url":"https://github.com/yoheimuta/chromedp-example","last_synced_at":"2025-04-10T00:15:41.822Z","repository":{"id":57508960,"uuid":"174280933","full_name":"yoheimuta/chromedp-example","owner":"yoheimuta","description":"chromedp Example Go App Scraping Sneaker Price List in StockX","archived":false,"fork":false,"pushed_at":"2019-03-14T09:38:17.000Z","size":7504,"stargazers_count":12,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T00:15:35.530Z","etag":null,"topics":["chromedp","example","golang","headless-chrome","stockx"],"latest_commit_sha":null,"homepage":"","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/yoheimuta.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}},"created_at":"2019-03-07T05:55:26.000Z","updated_at":"2024-11-09T12:13:26.000Z","dependencies_parsed_at":"2022-08-29T20:20:13.112Z","dependency_job_id":null,"html_url":"https://github.com/yoheimuta/chromedp-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoheimuta%2Fchromedp-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoheimuta%2Fchromedp-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoheimuta%2Fchromedp-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoheimuta%2Fchromedp-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoheimuta","download_url":"https://codeload.github.com/yoheimuta/chromedp-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131316,"owners_count":21052819,"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":["chromedp","example","golang","headless-chrome","stockx"],"created_at":"2024-10-12T15:05:37.470Z","updated_at":"2025-04-10T00:15:41.798Z","avatar_url":"https://github.com/yoheimuta.png","language":"Go","readme":"# chromedp-example\n\n[![CircleCI](https://circleci.com/gh/yoheimuta/chromedp-example.svg?style=svg)](https://circleci.com/gh/yoheimuta/chromedp-example)\n\nScraping specific sneakers' bid price list in StockX:\n\n- How to work:\n  - Go to https://stockx.com/buy/air-jordan-1-retro-high-og-defiant-couture.\n  - Wait to complete loading the confirmation page.\n  - Click the confirm button.\n  - Wait to complete loading the size list page.\n  - Retrieve the sizes and prices.\n\n## Setup\n\nSet the project root path to GOPATH.\n\n```bash\nmkdir chromedp-example\ncd chromedp-example\nexport GOPATH=$(pwd)\ngo get -d github.com/yoheimuta/chromedp-example # ignore a `no Go files` error.\ncd src/github.com/yoheimuta/chromedp-example\n```\n\nRun your chrome headless-shell.\n\n```bash\ndocker pull chromedp/headless-shell\ndocker run -d -p 9222:9222 --rm --name headless-shell chromedp/headless-shell\n```\n\n## Run\n\nThere are 3 main.go which use different logic to demonstrate how to utilize the chromedp.\n\nIn fact, each code differs only repository injected in main.go.\n\n```bash\n# normal implementation.\ngo run cmd/stockx/main.go\n\n# faster implementation. This uses the cookie to skip the confirmation page.\ngo run cmd/faststockx/main.go\n\n# parallel support implementation. This is more performant.\n## NOTE: This uses a local chrome app.\ngo run cmd/parallelstockx/main.go\n```\n\n## Testing\n\n```bash\ngo test -v -count 1 -timeout 240s -race ./...\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoheimuta%2Fchromedp-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoheimuta%2Fchromedp-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoheimuta%2Fchromedp-example/lists"}