Skip to content

v1.1.7

Compare
Choose a tag to compare
@TechShreyash TechShreyash released this 25 Jun 03:37

[1.1.7] - 2024-06-25

Added

  • New method .get_file_info()
# This script demonstrates how to use the TechZDL package to fetch file information asynchronously.

import asyncio
from techzdl.api import TechZDL


async def main():
    techzdl = TechZDL()

    downloader = techzdl.get_downloader(url="https://link.testfile.org/bNYZFw")

    # Retrieve file information asynchronously
    file_info = await downloader.get_file_info()

    # Print the retrieved file information
    print(f"Filename: {file_info['filename']}")
    print(f"Total Size: {file_info['total_size']} bytes")


asyncio.run(main())

Output

image

Changed

  • Docs improved, added various demos