rework yappy_parser.py, Added dzen_parser.py, minor fixes

This commit is contained in:
2023-10-10 03:41:55 +03:00
parent 002a7efb9c
commit b4bfde5bd2
6 changed files with 70 additions and 30 deletions
+1 -4
View File
@@ -4,21 +4,18 @@ from minio.error import S3Error
def main():
client = Minio(
"s3.grfc.ru:443",
"grfc.ru",
access_key="cl-i-oculus-dev1",
secret_key="Nom8qKEU6IYtQSrNt5ZPN1XncQTZdtUM",
secure=True
)
# Make 'asiatrip' bucket if not exist.
found = client.bucket_exists("clean-internet-oculus-integration-dev")
if not found:
client.make_bucket("clean-internet-oculus-integration-dev")
else:
print("Bucket 'clean-internet-oculus-integration-dev' already exists")
# Upload '/home/user/Photos/asiaphotos.zip' as object name
# 'asiaphotos-2015.zip' to bucket 'asiatrip'.
client.fput_object(
"clean-internet-oculus-integration-dev", "4uv2GNc_ybc_1080p.mp4", "/Users/garickbadalov/PycharmProjects/video_downloader_service/downloads/Youtube/4uv2GNc_ybc_1080p.mp4",
)