Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.
/ kogama.py Public archive

An API wrapper for the online game KoGaMa written in Python.

License

Notifications You must be signed in to change notification settings

Ars3ne/kogama.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kogama.py

Python Version Pypi


Copyright © 2019 Ars3ne

Licensed under the MIT License (see LICENSE.txt for details).

Kogama <https://www.kogama.com> is an online game where you can create, share and play multiplayer games created by other users.

Some features has been removed from the public version, in order to prevent abuse. If you need one of them, get in touch on Discord: Ars3ne#0497


Installation:

To install the library, just run the following command:

pip install kogama.py

Requirements:

  • Python ≥ 3.5.3
  • requests
  • beautifulsoup4
  • lxml

Usually pip will install these for you.

Example


Here's a quick example of the library used to make a simple bot that get comments from a post and prints the content and id of them:

from kogama import Kogama
import json

k = Kogama.Kogama("www")
l = k.Auth().login("username", "password")

if l:
  comments = k.User().get_post_comments(20782273)
  for comment in comments['data']:
    comment_text = json.loads(comment['_data'])
    print("Comment: {}. ID: {}".format(comment_text['data'], comment['id']))
else:
  exit("Unable to login.")

Documentation

Coming soon.

About

An API wrapper for the online game KoGaMa written in Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages