mirror of
https://github.com/arabianq/viking-file-python.git
synced 2026-04-28 06:21:24 +00:00
update README
This commit is contained in:
@@ -214,12 +214,8 @@ async def get_file_information():
|
|||||||
|
|
||||||
# Get file information
|
# Get file information
|
||||||
file_hash = "FILE_HASH_TO_GET_INFO" # Replace with the actual file hash
|
file_hash = "FILE_HASH_TO_GET_INFO" # Replace with the actual file hash
|
||||||
try:
|
file = await client.get_file(file_hash)
|
||||||
file = await client.get_file(file_hash)
|
|
||||||
print(
|
|
||||||
f"File Hash: {file.hash}, Name: {file.name}, Size: {file.size}, URL: {file.url}, Downloads: {file.downloads}")
|
|
||||||
except FileExistsError as e:
|
|
||||||
print(e)
|
|
||||||
|
|
||||||
|
|
||||||
asyncio.run(get_file_information())
|
asyncio.run(get_file_information())
|
||||||
|
|||||||
Reference in New Issue
Block a user