| 123456789 |
- from pathlib import Path,PurePosixPath,PureWindowsPath,PurePath
- from utils.file import read_file,save_to_file,s3,resource,get_s3_uri_info
- from utils.logu import get_logger
- from upath import UPath
- logger = get_logger('test')
- mhtml_path = 's3://public/amazone/copywriting_production/output/B0B658JC22/B0B658JC22.mhtml'
- bucket_name, object_name, upload_args = get_s3_uri_info(mhtml_path)
- # data = read_file(mhtml_path)
- logger.info(f"{s3.head_object(Bucket=bucket_name, Key=object_name)}")
|