|
@@ -1,3 +1,5 @@
|
|
|
+import re
|
|
|
+
|
|
|
import requests
|
|
|
import json
|
|
|
|
|
@@ -23,6 +25,7 @@ class VideoProcessing:
|
|
|
result = response['result']
|
|
|
print(result)
|
|
|
cleaned_string = result.replace( "```json", "" ).replace( "```", "" ).strip()
|
|
|
+ cleaned_string = re.sub( r'[\x00-\x1F]+', '', cleaned_string )
|
|
|
json_data = json.loads( cleaned_string )
|
|
|
print(json_data)
|
|
|
return json_data
|