Skip to main content

Gozle disk api is an unofficial api for the gozle disk service which provides the ability to log into your account, see the amount of space on your account and get account data. There is a function to update outdated cookies.

Project description

Gozle disk api

Gozle disk api is an unofficial api for the gozle disk service which provides the ability to log into your account, see the amount of space on your account and get account data. There is a function to update outdated cookies.

For reference

The fact is that cookies last about 1-2 hours. Therefore, a function was written to detect invalid cookies and update them. To implement re-authorization, a code was written that saves your login and password. It is not transferred to third parties. I don't understand OOP well, so there is a lot of hard code in the library, if you want, you can correct my hard code. In the future I will do this myself as I learn OOP.

Implemented functions: authorization, viewing profile information, viewing the amount of disk space.

Soon: Uploading files.

To use the get_info_profile function you must pass the required user_api argument. This is your personal api for your account of this type: https://disk.gozle.com.tm/api/v1/users/1234/. You must find out this address yourself in the developer console by analyzing all network requests.

image

Log in to your account, press f12, go to the Network tab and reload the page. Find the API shown in the screenshot (4 digits at the end will be different)

Installation

Import: from gozle_disk_api import gozle_disk

To authorize, you must activate this code. It is executed once, after which you will have 2 files created, these are cookies.txt and data.txt. You don't need to touch these files.

gozle_disk.auth('email', 'password')

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

gozle_disk_api-1.0.2.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file gozle_disk_api-1.0.2.tar.gz.

File metadata

  • Download URL: gozle_disk_api-1.0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.0

File hashes

Hashes for gozle_disk_api-1.0.2.tar.gz
Algorithm Hash digest
SHA256 27d52438143cf37b31ab9c870249175d4ed4f0ffa3cf96f0dd6d4e05d0b08242
MD5 bccf058cead64d4306633599b3345d66
BLAKE2b-256 3261261501c07f92e12962bd20f87d08d69b120d80dffede67e828e8ffcf79bf

See more details on using hashes here.

Supported by

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