{"id":20021359,"url":"https://github.com/piotrpdev/webuy-cex-price-tracker","last_synced_at":"2025-05-05T01:30:57.654Z","repository":{"id":114094866,"uuid":"238215724","full_name":"piotrpdev/WeBuy-Cex-Price-Tracker","owner":"piotrpdev","description":"A python script that gets the prices of certain Cex products and uploads them to google sheets","archived":true,"fork":false,"pushed_at":"2023-05-22T22:40:24.000Z","size":4112,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T05:32:17.440Z","etag":null,"topics":["cex","cex-api","cex-products","crawler","google-sheets","gspread","prices","python-script","webuy","webuy-api","webuy-cex","webuycex"],"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/piotrpdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-02-04T13:43:08.000Z","updated_at":"2025-01-04T19:29:14.000Z","dependencies_parsed_at":"2023-06-12T17:43:38.658Z","dependency_job_id":null,"html_url":"https://github.com/piotrpdev/WeBuy-Cex-Price-Tracker","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/piotrpdev%2FWeBuy-Cex-Price-Tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrpdev%2FWeBuy-Cex-Price-Tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrpdev%2FWeBuy-Cex-Price-Tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrpdev%2FWeBuy-Cex-Price-Tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piotrpdev","download_url":"https://codeload.github.com/piotrpdev/WeBuy-Cex-Price-Tracker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252422992,"owners_count":21745526,"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":["cex","cex-api","cex-products","crawler","google-sheets","gspread","prices","python-script","webuy","webuy-api","webuy-cex","webuycex"],"created_at":"2024-11-13T08:36:32.212Z","updated_at":"2025-05-05T01:30:54.941Z","avatar_url":"https://github.com/piotrpdev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WeBuy Cex Price Tracker ![Build Status](https://img.shields.io/badge/build-passing-brightgreen) ![License](https://img.shields.io/badge/license-MIT-red) ![Python version](https://img.shields.io/badge/Python-latest-blue)\n\nA python script that gets the prices of certain WeBuy CeX products and uploads them to google sheets. Based on [CEX-API](https://github.com/teamplz/CEX-API), uses the [Irish version of webuy.com](https://ie.webuy.com/).\n\n## Getting Started\n\nThe script is currently able to get the information of multiple products using their id's. Put in the id's of the games you want and you will get their prices.\n\n### Prerequisites\n\nYou will need the latest version of [Python](https://www.python.org/downloads/), [OAuth2Client](https://oauth2client.readthedocs.io/en/latest/#supported-python-versions), [Requests](https://pypi.org/project/requests/), \n[GSpread](https://pypi.org/project/gspread/) and [GSpread-Formatting](https://pypi.org/project/gspread-formatting/).\n\nThere is a [requirements.txt](requirements.txt) file included that has everything you need in it. Just run this command before running the script and you should be good to go:\n\n```python\npip install -r requirements.txt\n```\n\n### Installing\n\nAfter downloading the files and prerequisites you can enter the id's of the products you want to check into [id_list.py](id_list.py).  Then make sure you put the credentials file into the folder, name it client_secret.json, and put the sheets' name into [main.py](main.py).\n\n```python\nsheet = client.open(\"name of sheet here\").sheet1\n```\n\n### Running\n\nRunning the script as is should return the information for some products. The dupeChecker() function will check for any duplicate id's in your list and then the update_list() function will check for new id's and ungenerated google sheet products.\n\nPriceUpdate() will then lookup each id on the CeX website, get it's prices and print it onto the google sheet.\n\nHowever, be aware that if you add a lot of id's you will need to deal with Google Sheets' API [Usage Limits](https://developers.google.com/sheets/api/limits). I have added a basic cooldown function in [main.py](main.py) and [addon.py](addon.py) however it isn't perfect, if you're looking into adding A LOT of id's you should try manipulating the wait time.\n\n```python\ntime.sleep(100)\n```\n\nOptionally you can use the nandi() function to scan the google sheet for any names and id's and print them to the console.\n\n![Getting the id](captures/getting_id.gif)\n![The id's](captures/id_list.png)\n![Final result](captures/sheet.gif)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n## Acknowledgement\n\nBig thanks to [Sothclaws](https://github.com/Southclaws) for his [CeX Go Client](https://github.com/Southclaws/go-cex) and [teamplz](https://github.com/teamplz) for his [CEX-API](https://github.com/teamplz/CEX-API). They really helped me out and saved me a lot of time!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrpdev%2Fwebuy-cex-price-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiotrpdev%2Fwebuy-cex-price-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrpdev%2Fwebuy-cex-price-tracker/lists"}