Skip to content

Instantly share code, notes, and snippets.

@pixdoet
Created May 6, 2022 03:18
Show Gist options
  • Save pixdoet/3ebc997bea62e6b7bf0919ff15d49abe to your computer and use it in GitHub Desktop.
Save pixdoet/3ebc997bea62e6b7bf0919ff15d49abe to your computer and use it in GitHub Desktop.
Script to parse `get_video_info` files from Google Drive
#!/usr/bin/env python3
"""
Parse.py for parsing Google drive get_video_info files.
Not sure what you'll use this for, but cool I guess...
@author Ian Hiew([email protected])
"""
def openFile(filename):
with open(filename, "r") as f:
return f.read()
def parse(file):
fileParsedContents = file.split("&")
return fileParsedContents
def main():
file = openFile("get_video_info")
parsedFile = parse(file)
for file in parsedFile:
print(f"{file}\n")
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment