{"id":18668064,"url":"https://github.com/rririanto/shopee-inventory-bot","last_synced_at":"2025-04-11T23:34:19.335Z","repository":{"id":49207280,"uuid":"255924585","full_name":"rririanto/shopee-inventory-bot","owner":"rririanto","description":"\"I Make dropshiper's job easier\" ~ Python Shopee Inventory Bot","archived":false,"fork":false,"pushed_at":"2023-05-23T00:52:48.000Z","size":299,"stargazers_count":28,"open_issues_count":2,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-25T20:05:47.554Z","etag":null,"topics":["python","python3","scrapper","scrapper-script","telegram-api","telegram-bot"],"latest_commit_sha":null,"homepage":"https://github.com/jimmyromanticdevil/shopee-inventory-bot/blob/master/demo_video.mp4","language":"Python","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/rririanto.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":"2020-04-15T13:26:12.000Z","updated_at":"2024-11-21T20:48:38.000Z","dependencies_parsed_at":"2022-09-09T06:51:09.000Z","dependency_job_id":null,"html_url":"https://github.com/rririanto/shopee-inventory-bot","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/rririanto%2Fshopee-inventory-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rririanto%2Fshopee-inventory-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rririanto%2Fshopee-inventory-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rririanto%2Fshopee-inventory-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rririanto","download_url":"https://codeload.github.com/rririanto/shopee-inventory-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248496441,"owners_count":21113836,"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":["python","python3","scrapper","scrapper-script","telegram-api","telegram-bot"],"created_at":"2024-11-07T08:41:10.672Z","updated_at":"2025-04-11T23:34:14.279Z","avatar_url":"https://github.com/rririanto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shopee-inventory-bot\n\n\"I Make dropshiper's job easier\" ~ shopee inventory bot [Watch video demo](https://github.com/jimmyromanticdevil/shopee-inventory-bot/blob/master/demo_video.mp4)\n\nThe idea inspired by my wife daily life as a dropshippers. In order to keep her store stock up-to-date, she did manual update for stocks from the suppliers store in shopee and it was quite exhausting because the more the items, the longer it takes to update them all. So as a loving husband, I came up with this simple idea to make her job easier. \n\nThe bot tasks are quite simple. Just type /update_stock_store on Telegram message and all of the stock on the spreadsheets will be updated automaticaly. After that she just need to download the updated spreadsheet and upload it using [shopee mass updater](https://seller.shopee.co.id/edu/article/100)\n\n## Requirements\n\n- python-telegram-bot `pip install python-telegram-bot`\n- oauth2client `pip install oauth2client`\n- gspread `pip install gspread`\n- requests `pip install requests`\n- python-dotenv `pip install python-dotenv`\n\n## Setup [.env](https://github.com/jimmyromanticdevil/shopee-inventory-bot/blob/master/.env)\n\nGOOGLE_CREDENTIALS =\u003e [Obtain OAuth2 credentials from Google Developers Console](http://gspread.readthedocs.org/en/latest/oauth2.html)\n\nTELEGRAM_TOKEN =\u003e [To generate an Access Token](https://github.com/python-telegram-bot/python-telegram-bot/wiki/Introduction-to-the-API)\n\nTELEGRAM_CHAT_ID =\u003e [how to get the Chat ID](https://answers.splunk.com/answers/590658/telegram-alert-action-where-do-you-get-a-chat-id.html)\n\nSTORE_ID =\u003e https://shopee.co.id/{STORE_ID}\n\nSPREADSHEET_NAME =\u003e Your spreadsheet name on google sheet. First go to mass update panel on [shopee store](https://seller.shopee.co.id/edu/article/100), download the xlxs and upload it to google spreadsheet and copy the name of it then put it on here.\n\n\n## Installation\n\n```sh\n\ngit clone https://github.com/jimmyromanticdevil/shopee-inventory-bot/\ncd shopee-inventory-bot\npip install -r requirements.txt\n\npython start_bot.py\n\n```\n\n## Issues\nIf the code is not working, you could check the bot.log in the directory and read the error.\n\n- gspread.exceptions.SpreadsheetNotFound or This operation is not supported for this document', 'status': 'FAILED_PRECONDITION'\n  please make sure you save the file as googlespreadsheet not as google drive. convert the spreadsheet by going to File\u003e Save as Google Sheet.\n\n- caused error ('Unexpected credentials type', None, 'Expected', 'service_account')\n  please make sure to follow this step to create correct service acount. https://gspread.readthedocs.io/en/latest/oauth2.html\n\n## Learn More\n\nYou can learn more about telegram-bot in the [Here](https://medium.com/@arushsharma91/telegram-bot-from-the-first-line-to-deployment-83141129a573) and [Here](https://www.freecodecamp.org/news/learn-to-build-your-first-bot-in-telegram-with-python-4c99526765e4/) \n\nTo learn gspread, check out [Here](https://www.twilio.com/blog/2017/02/an-easy-way-to-read-and-write-to-a-google-spreadsheet-in-python.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frririanto%2Fshopee-inventory-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frririanto%2Fshopee-inventory-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frririanto%2Fshopee-inventory-bot/lists"}