<commit_before><commit_msg>add script to set expiration days on recorded/uploaded videos<commit_after>import sys

from Ziggeo import Ziggeo

if(len(sys.argv) < 5):
	print ("Error\n")
	print ("Usage: $>python expiration_days_video.py YOUR_API_TOKEN YOUR_PRIVATE_KEY VIDEO_TOKEN EXPIRATION_DAYS\n")
	sys.exit()

api_token = sys.argv[1]
private_key = sys.argv[2]
video_token = sys.argv[3]
expiration_days = sys.argv[4]

ziggeo = Ziggeo(api_token, private_key)
update_arguments = {}
update_arguments["expiration_days"] = int(expiration_days)
print (ziggeo.videos().update(video_token, update_arguments))
{'fraction_non_alphanumeric': 0.11686143572621036, 'fraction_numerical': 0.008347245409015025, 'mean_word_length': 7.333333333333333, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3492256', 'n_tokens_mistral': 218, 'n_tokens_neox': 214, 'n_words': 44}