gozle-disk-api


Namegozle-disk-api JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/seratclemency/gozle-disk-api/
SummaryGozle 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.
upload_time2024-02-29 18:21:56
maintainer
docs_urlNone
authorseratclemency
requires_python
licenseMIT
keywords gozle disk api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://github.com/seratclemency/gozle-disk-api/assets/102463399/28753284-bad0-4e1e-9bee-f892be1a5b82)

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.

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



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/seratclemency/gozle-disk-api/",
    "name": "gozle-disk-api",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "gozle disk api",
    "author": "seratclemency",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/32/61/261501c07f92e12962bd20f87d08d69b120d80dffede67e828e8ffcf79bf/gozle_disk_api-1.0.2.tar.gz",
    "platform": null,
    "description": "# Gozle disk api\r\nGozle 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.\r\n\r\n## For reference\r\nThe 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.\r\nI 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.\r\n\r\nImplemented functions: authorization, viewing profile information, viewing the amount of disk space.\r\n\r\nSoon:\r\nUploading files.\r\n\r\nTo 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.\r\n\r\n![image](https://github.com/seratclemency/gozle-disk-api/assets/102463399/28753284-bad0-4e1e-9bee-f892be1a5b82)\r\n\r\nLog 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)\r\n\r\n## Installation\r\n\r\nImport: ```from gozle_disk_api import gozle_disk```\r\n\r\nTo 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.\r\n\r\n```python\r\ngozle_disk.auth('email', 'password')\r\n```\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "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.",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/seratclemency/gozle-disk-api/"
    },
    "split_keywords": [
        "gozle",
        "disk",
        "api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3261261501c07f92e12962bd20f87d08d69b120d80dffede67e828e8ffcf79bf",
                "md5": "bccf058cead64d4306633599b3345d66",
                "sha256": "27d52438143cf37b31ab9c870249175d4ed4f0ffa3cf96f0dd6d4e05d0b08242"
            },
            "downloads": -1,
            "filename": "gozle_disk_api-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "bccf058cead64d4306633599b3345d66",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3338,
            "upload_time": "2024-02-29T18:21:56",
            "upload_time_iso_8601": "2024-02-29T18:21:56.985283Z",
            "url": "https://files.pythonhosted.org/packages/32/61/261501c07f92e12962bd20f87d08d69b120d80dffede67e828e8ffcf79bf/gozle_disk_api-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-29 18:21:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "seratclemency",
    "github_project": "gozle-disk-api",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "gozle-disk-api"
}
        
Elapsed time: 0.28836s