|
@@ -2,18 +2,15 @@
|
|
|
@author: luojunhui
|
|
|
"""
|
|
|
import os
|
|
|
-import threading
|
|
|
-import hashlib
|
|
|
-
|
|
|
-from datetime import datetime, timezone
|
|
|
-
|
|
|
import re
|
|
|
import html
|
|
|
+import threading
|
|
|
+import hashlib
|
|
|
|
|
|
import oss2
|
|
|
-from uuid import uuid4
|
|
|
import requests
|
|
|
-
|
|
|
+from uuid import uuid4
|
|
|
+from datetime import datetime, timezone
|
|
|
from fake_useragent import FakeUserAgent
|
|
|
|
|
|
|
|
@@ -239,4 +236,4 @@ class Functions(object):
|
|
|
oss2.Auth(access_key_id, access_key_secret), endpoint, bucket_name
|
|
|
)
|
|
|
bucket.put_object_from_file(key=oss_video_key, filename=local_video_path)
|
|
|
- return oss_video_key
|
|
|
+ return oss_video_key
|