Skip to main content

Creates internal cache for the communities a user follows on united-cube.com

Project description

UCube

What is it?

UCube creates internal cache for the communities a user follows on United-Cube.
This is a wrapper for United-Cube's private API, but may be referred to as an API on this repository.

API Documentation

Discord Support Server

A UCUBE DISCORD BOT CAN BE FOUND HERE

Functionalities

  • Asynchronous and Synchronous Support
  • Receive all the posts the artists in your communities have made. This includes all images/videos/comments made by them.
  • Cache is split under a hierarchy directly under a club.
  • Keep track of notifications on your user account, you can easily create a loop to update your notification cache on updates. (Usage of this can be found in the examples folder)
  • Event hook for new notifications.

Installation

In a terminal, type pip install UCube.

To install from source:
pip install git+https://github.com/MujyKun/united-cube.git

How to Use

There are two ways to log in.
The first way is using a username and password to login which will automatically refresh your token.
The second way is getting your account token manually and being logged in for a very short amount of time.

In order to get your account token, go to United-Cube and Inspect Element (F12).
Then go to the Network tab and filter by XHR. Then refresh your page (F5) and look for popup or clubs under XHR.
Under Headers, scroll to the bottom and view the request headers. You want to copy everything past Authorization: Bearer.

For example, you may see (This is just an example):
Authorization: Bearer ABCDEFGHIJKLMNOPQRSTUVWXYZ
Then ABCDEFGHIJKLMNOPQRSTUVWXYZ would be your auth token for UCube. It is suggested to have the auth token as an environment variable.

The first method to log in (username & password) is the best way and SHOULD be the way that you log in.

CODE EXAMPLES

Asynchronous Example
Synchronous Example

API Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

UCube-0.0.2.2.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

UCube-0.0.2.2-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

Details for the file UCube-0.0.2.2.tar.gz.

File metadata

  • Download URL: UCube-0.0.2.2.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for UCube-0.0.2.2.tar.gz
Algorithm Hash digest
SHA256 3ac986c6723431c5be6430c97bf9401d311a9d44e7db49cc96b9182724f78d71
MD5 133ebf04cf96ccf8af5431e11d1405e8
BLAKE2b-256 4195958ac165f6bc7b563e84fc8d69159a978accd25bb2cdfde39ff4e1f42d44

See more details on using hashes here.

File details

Details for the file UCube-0.0.2.2-py3-none-any.whl.

File metadata

  • Download URL: UCube-0.0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 25.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for UCube-0.0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 41dea3301895985e4db0decb384903f28c970cb23a1de741980092a4194cd317
MD5 bdf43314af673aaa05de2f92a8339e29
BLAKE2b-256 f2d4b3ca48fc44da701775440918d56129c500ec8de0ac935d80f6d91e7d3a4c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page