# HamsterPy
**HamsterPy** is created for auto-farming coins in **Hamster Kombat** (Telegram game)
# Instruction
## Add your user data
1. Login to Telegram Web from your browser on PC
2. Launch Hamster (you will receive an error asking you to log in from your phone)
3. Open **Inspect Element** -> go to the **Application** tab -> open **session storage** -> open sessions "https://hamsterkombat.io" -> click on the element **"__telegram__initParams"** -> copy the value **"tgWebAppData"**
> the result looks like **"user=%7B%22id%22%3A17599916624%2C%22first_name%22%3A%22KIRBY%22%2C%22last_name%22%3A%22%22%2C%22username%22%3A%22KIRBYYY% 22%2C%22language_code%22%3A%22en%22%2C%22allows_write_to_pm%22%3Atrue%7D&chat_instance=906196156151&chat_type=private&start_param=kentId99999999999&auth_date=1665666&hash=3b6c05a 3733d4cdd0ece767477848e90d176141d5916f12ba0e8a65e07b8"**
4. copy the result and paste it into the **user.txt** file
## Start coding
> pip install hamsterpy
```python
from hamsterpy import HamsterClient
client = HamsterClient()
client.auth()
client.autofarm(taps=True, print_info=True)
```
# TODO
Soon it is planned to add auto-pumping of items
Raw data
{
"_id": null,
"home_page": "https://github.com/KirbyRedius/HamsterPy",
"name": "hamsterpy",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "Hamster, HamsterKombat, Hamster Kombat, api.hamsterkombat.io",
"author": "KirbyRedius",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/87/8d/f1be4ad1c5c63d5baa182f8171de4c7722d22074d93da65f9231759933a3/hamsterpy-0.0.3.tar.gz",
"platform": null,
"description": "# HamsterPy\r\n\r\n**HamsterPy** is created for auto-farming coins in **Hamster Kombat** (Telegram game)\r\n\r\n# Instruction\r\n## Add your user data\r\n\r\n1. Login to Telegram Web from your browser on PC\r\n2. Launch Hamster (you will receive an error asking you to log in from your phone)\r\n3. Open **Inspect Element** -> go to the **Application** tab -> open **session storage** -> open sessions \"https://hamsterkombat.io\" -> click on the element **\"__telegram__initParams\"** -> copy the value **\"tgWebAppData\"**\r\n> the result looks like **\"user=%7B%22id%22%3A17599916624%2C%22first_name%22%3A%22KIRBY%22%2C%22last_name%22%3A%22%22%2C%22username%22%3A%22KIRBYYY% 22%2C%22language_code%22%3A%22en%22%2C%22allows_write_to_pm%22%3Atrue%7D&chat_instance=906196156151&chat_type=private&start_param=kentId99999999999&auth_date=1665666&hash=3b6c05a 3733d4cdd0ece767477848e90d176141d5916f12ba0e8a65e07b8\"**\r\n\r\n4. copy the result and paste it into the **user.txt** file\r\n\r\n## Start coding\r\n\r\n> pip install hamsterpy\r\n```python\r\nfrom hamsterpy import HamsterClient\r\nclient = HamsterClient()\r\nclient.auth()\r\nclient.autofarm(taps=True, print_info=True)\r\n```\r\n\r\n# TODO\r\nSoon it is planned to add auto-pumping of items\r\n\r\n\r\n",
"bugtrack_url": null,
"license": null,
"summary": "HamsterPy is created for auto-farming coins in Hamster Kombat (Telegram game)",
"version": "0.0.3",
"project_urls": {
"GitHub": "https://github.com/KirbyRedius/HamsterPy",
"Homepage": "https://github.com/KirbyRedius/HamsterPy"
},
"split_keywords": [
"hamster",
" hamsterkombat",
" hamster kombat",
" api.hamsterkombat.io"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "af269185de617ae6ff9723e5fd9277751a41c001007ef79a92cb9c7f75730c97",
"md5": "0b2cce06f87c52a4bc9b9c9c5fdefc5f",
"sha256": "7275e1f91c1b3be74df89aadeed4361fd81e9e323562d1d22e7c2b06d6f005b4"
},
"downloads": -1,
"filename": "hamsterpy-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0b2cce06f87c52a4bc9b9c9c5fdefc5f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 3839,
"upload_time": "2024-06-16T13:29:44",
"upload_time_iso_8601": "2024-06-16T13:29:44.529658Z",
"url": "https://files.pythonhosted.org/packages/af/26/9185de617ae6ff9723e5fd9277751a41c001007ef79a92cb9c7f75730c97/hamsterpy-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "878df1be4ad1c5c63d5baa182f8171de4c7722d22074d93da65f9231759933a3",
"md5": "d449c3f432fe3fbb993f12de90e698bf",
"sha256": "1f512add4acaae9416c1b5ec77d59e4c13cd5d7de0a4ef6af04f5363f856b8fd"
},
"downloads": -1,
"filename": "hamsterpy-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "d449c3f432fe3fbb993f12de90e698bf",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 3480,
"upload_time": "2024-06-16T13:29:46",
"upload_time_iso_8601": "2024-06-16T13:29:46.089780Z",
"url": "https://files.pythonhosted.org/packages/87/8d/f1be4ad1c5c63d5baa182f8171de4c7722d22074d93da65f9231759933a3/hamsterpy-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-16 13:29:46",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "KirbyRedius",
"github_project": "HamsterPy",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "hamsterpy"
}