Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/altfoxie/vk-slaves
Simple library for working with the VK Slaves
https://github.com/altfoxie/vk-slaves
slaves vk vkslaves
Last synced: 4 months ago
JSON representation
Simple library for working with the VK Slaves
- Host: GitHub
- URL: https://github.com/altfoxie/vk-slaves
- Owner: altfoxie
- License: wtfpl
- Archived: true
- Created: 2021-03-24T08:32:02.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-19T20:55:08.000Z (over 3 years ago)
- Last Synced: 2024-05-17T00:31:37.967Z (8 months ago)
- Topics: slaves, vk, vkslaves
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vk-slaves
### Эпоха рабства завершена. Всем спасибо.
Простая библиотека для взаимодействия с игрой [Рабы](https://vk.com/app7794757) во ВКонтакте.## Установка
```bash
$ pip3 install vk-slaves
```## Использование
Для отправки запросов к игре нужно получить токен VK, например [здесь](https://oauth.vk.com/authorize?client_id=6121396&scope=1073737727&redirect_uri=https://oauth.vk.com/blank.html&display=page&response_type=token&revoke=1).### Создание клиента
```python
from vk_slaves import Slaves
client = Slaves('token123456')
```### Взаимодействие
```python
print(client.start())
print(client.top_users())
print(client.slave_list(id=12345678))client.buy_slave(87654321)
```