Current collected state Current
Observed since 20 Oct, 18:25 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
acrcloudclient
An AcrCloud Client for Python
ACR Cloud Python Client
https://docs.acrcloud.com/reference/console-api
List and remove audios that are created on 2021
from acrcloud import ACRCloudClient
import os
ACR_TOKEN=os.getenv("ACR_TOKEN")
def log(bucket, msg):
"""Local log function"""
print(f"B:{bucket.name} - {msg}")
acr = ACRCloudClient(ACR_TOKEN)
for bucket in acr.list_buckets(search="my-bucket-"):
print("Processing bucket:", bucket.name)
audios = bucket.list_audios(order="asc")
for a in audios:
if "2021" in a.created_at:
a.delete()
log(bucket, f"Delete audio: {a.id} - {a.created_at}")
else:
log(bucket, "Not found any audio from 2021")
break
Environment Variables
ACR_CLOUD_TOKEN =
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
requestsEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | requests | runtime |
bdist_wheel · 4.88 KB · Python py3
sdist · 4.39 KB · Python source
Observed since 20 Oct, 18:25 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:e04b75773c8e53051fa86cfd2ff036b8704f2d9d0ad4790322f595cc0f30ea66