PikPakAPI Python Library

repository·main·Indexed 42 days ago

https://github.com/quan666/pikpakapi

A Python implementation of the PikPak API (v0.1.11) for programmatically managing accounts, offline downloads, and file operations such as renaming, favoriting, and sharing.

Tokens
284
Snippets
2
Records
3
Agent score
3%

What's inside PikPakAPI

  1. Overview of PikPakApi features

    main

    The PikPakApi library provides several core capabilities for managing PikPak accounts and files:

    • Authentication: Login and access token refreshing.
    • Offline Downloads: Management of offline download tasks.
    • File Operations: Renaming files, favoriting files, and sharing files.
  2. Basic usage of PikPakApi

    main

    To use the library, instantiate the PikPakApi class with your username and password. The client operations are asynchronous, so you must await the method calls. A typical workflow involves logging in, refreshing the access token, and then performing operations like retrieving the offline download list.

    client = PikPakApi(
        username="your_username",
        password="your_password",
    )
    await client.login()
    await client.refresh_access_token()
    await client.offline_list()