Created
May 6, 2022 03:18
-
-
Save pixdoet/3ebc997bea62e6b7bf0919ff15d49abe to your computer and use it in GitHub Desktop.
Script to parse `get_video_info` files from Google Drive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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