{"id":26940519,"url":"https://github.com/joanroig/pccomponentes-bot","last_synced_at":"2025-04-02T15:18:54.050Z","repository":{"id":40703892,"uuid":"324890487","full_name":"joanroig/pccomponentes-bot","owner":"joanroig","description":"Bot for PcComponentes stock and outlet articles, it sends Telegram messages and can do automatic purchases. Useful for tracking graphics cards, processors, etc.","archived":false,"fork":false,"pushed_at":"2024-10-30T11:58:53.000Z","size":986,"stargazers_count":9,"open_issues_count":16,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-30T12:35:07.452Z","etag":null,"topics":["autobuy","bot","chromium","gpu","nodejs","pccomponentes","puppeteer","rtx","telegram"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/joanroig.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-12-28T02:14:15.000Z","updated_at":"2024-10-30T11:58:57.000Z","dependencies_parsed_at":"2023-02-08T03:45:48.836Z","dependency_job_id":"5616c6fe-db95-4b67-a745-d6eaed1d3c0f","html_url":"https://github.com/joanroig/pccomponentes-bot","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joanroig%2Fpccomponentes-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joanroig%2Fpccomponentes-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joanroig%2Fpccomponentes-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joanroig%2Fpccomponentes-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joanroig","download_url":"https://codeload.github.com/joanroig/pccomponentes-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246837628,"owners_count":20841906,"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":["autobuy","bot","chromium","gpu","nodejs","pccomponentes","puppeteer","rtx","telegram"],"created_at":"2025-04-02T15:18:53.324Z","updated_at":"2025-04-02T15:18:54.038Z","avatar_url":"https://github.com/joanroig.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚠️ Deprecation Notice\n\nThis project is **no longer actively maintained** and is not working with the current PcComponentes website due to recent changes. Contributions are welcome, but there may be limited support for new issues or pull requests.\n\n---\n\n# PcComponentes Bot\n\nReceive a Telegram message when a article is back to stock at the desired price!\nImplemented for PcComponentes.com stock and outlet articles, useful for tracking:\n\n- Graphic cards\n- Processors\n- Motherboards\n\n\u003e ⚠️ Disclaimer: Please note that this is a research project. I am by no means responsible for any usage of this tool. Use it on your behalf.\n\n## Current status\n\nThe project is not actively maintained, therefore the bot may fail from time to time due changes in the website. New issues and pull requests are welcome!\n\n**Fully working**\n\n- Tracking\n- Telegram notifications\n\n**Implementation affected due website changes**\n\n- **Login:** May be fixed by saving the cookies in a file and restoring it on every session.\n- **Automatic purchase:** New purchase page, needs a full rework.\n\n## Requirements\n\nYou will need Node.js and a node global package installed in your environement. Yarn is recommended as a package manager and script runner over npm.\n\n### Node and npm\n\n- #### Node installation on Windows\n\n  Just go on [official Node.js website](https://nodejs.org/) and download the installer.\n  Also, be sure to have `git` available in your PATH, `npm` might need it (You can find git [here](https://git-scm.com/)).\n\n- #### Node installation on Ubuntu\n\n  You can install nodejs and npm easily with apt install, just run the following commands.\n\n  $ sudo apt install nodejs\n  $ sudo apt install npm\n\n- #### Other Operating Systems\n\n  You can find more information about the installation on the [official Node.js website](https://nodejs.org/) and the [official NPM website](https://npmjs.org/).\n\nIf the installation was successful, you should be able to run the following command.\n\n    $ node --version\n    v14.16.1\n\n    $ npm --version\n    7.12.0\n\nIf you need to update `npm`, you can make it using `npm`! Cool right? After running the following command, just open again the command line and be happy.\n\n    $ npm install npm -g\n\n### Yarn\n\nYou can install yarn after installing npm with the following command.\n\n    $ npm install --global yarn\n\nIf the installation was successful, you should be able to run the following command.\n\n    $ yarn --version\n    1.22.10\n\n## Install\n\n    $ git clone https://github.com/joanroig/pcalerts\n    $ cd pcalerts\n    $ yarn\n\n## Configure bot\n\nEdit the `config.json` file with your settings. Use the files in the `examples` folder as a reference, and check the [examples README](/examples/README.md) to know about all configurations. See [models.ts](src/models.ts) for a detailed explanation of every configuration.\n\nEdit the `.env` file in the root folder by changing the `BOT_TOKEN` string to connect your Telegram account:\n\n- The `BOT_TOKEN` is provided by https://t.me/botfather, more info here: https://core.telegram.org/bots/api\n- The `CHAT_ID` is provided after starting a chat with the Telegram bot. It will be saved automatically in the `.env` file.\n\nIf you enable the purchase mode, add those strings in the .env file with your account credentials:\n\n    PCC_USER=username@mail.com\n    PCC_PASS=userpassword\n\n## Running the project\n\n    $ yarn start\n\nTo run it on a Raspberry (maybe chmod + x is needed), you can also execute: `run_raspberry.sh`\n\n## Warnings about the purchase\n\n### Cart management\n\nIf purchase mode is activated, the bot will add the article into the cart and try to order everything in it. Please keep it empty!\n\n### Payment methods\n\nThe transfer option disappears from time to time. If purchase mode is activated, you will need to have a vinculated card.\n\nTo vinculate one, follow those steps:\n\n- Add whatever in the cart and start the purchase process.\n- Add your credit / debit card, then confirm the purchase. This vinculates the card.\n- If you don't need the article you can cancel the purchase [here](https://www.pccomponentes.com/usuarios/panel/mis-pedidos-y-facturas). The card will remain in your account for future usage.\n\n## Known issues\n\n### Login fails, but credentials are right\n\nEdit the `puppeteer-config.json` and set `\"debug\":true`.\nRestart the bot, and in the login attempt check if a captcha appears. Solve it manually after the bot introduces the credentials, and perform a login.\nThen set `\"debug\":false` again and check it the problem is solved.\n\n### An issue is not listed here?\n\nPlease check the [open](https://github.com/joanroig/pccomponentes-bot/labels/bug) and [closed](https://github.com/joanroig/pccomponentes-bot/issues?q=is%3Aclosed+label%3Abug) bugs in the issue tracker for the details of your bug. If you can't find it, open a [new issue](https://github.com/joanroig/pccomponentes-bot/issues/new?assignees=joanroig\u0026labels=bug\u0026template=bug_report.md\u0026title=%5BBUG%5D+).\n\n## Credits\n\nThis project uses modified code from: https://github.com/elpatronaco/pccomponentes-buy-bot\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoanroig%2Fpccomponentes-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoanroig%2Fpccomponentes-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoanroig%2Fpccomponentes-bot/lists"}