# trying to imagine a use case that I have for a class class Get(): ''' A simple class that defines either a keyword: value pair, a keyword: reminder or link collection entry ''' def __init__(self, key, desc, href): ''' Initialize the object ''' self.key = key self.desc = desc self.href = href def ballReturn(self): ''' retrieve the corresponding properties of the key ''' print("\n" + self.key.title() + "\n\n" + self.desc + " " + self.href ) class YTf(): ''' finally, no need to use the excel spreadsheet to get command format when using youtube-dl OR yt-dlp ''' def __init__(self, link, title, start, end): ''' Initialize the object ''' self.link = link self.title = title self.start = start self.end = end def getFull(self): ''' cases where one of the options are empty require a different print statement For Example. A. Only the link and a title is provided ''' print("\n" + 'youtube-dl -o "' + self.title + '.%(ext)s" --external-downloader ffmpeg --external-downloader-args "-ss ' + self.start + " -to " + self.end + '"-f best ' + self.link + "\n") class YTs(): ''' finally, no need to use the excel spreadsheet to get command format when using youtube-dl OR yt-dlp ''' def __init__(self, link, title): ''' Initialize the object ''' self.link = link self.title = title def getSimple(self): ''' cases where one of the options are empty require a different print statement For Example. A. Only the link and a title is provided ''' print("\n" + 'youtube-dl -o "' + self.title + '.%(ext)s" ' + self.link + "\n") # class vs object # key1 = Get("The Covid19 Network Complex", "pdf document describing the complex network of relationships between non-governmental organizations (NGOs), companies, documents, and people.

This graphic above shows connections between the Gates Foundation, Wellcome Trust, WHO, GAVI and other NGOs and Big Pharma... It contains round about 6500 objects including like Persons, NGOs, Companies, Documents, etc. It also includes more than 7200 links between them.","\n\nhttps://dtv.to/2XJUolb") # key1.ballReturn() # print("\nand then, another one...\n\n\n") # key2 = Get("The Great Reset", "Link on web --> pdf of the book by Klauss Schwabb","\n\nhttps://carterheavyindustries.files.wordpress.com/2020/12/covid-19_-the-great-reset-klaus-schwab.pdf") # key2.ballReturn() ytreq1 = YTf("xLINKxPASTExHEREx","xYOURxVIDEOxPROBABLYxNEEDSxAxTITLEx","00:MM:00.00", "00:MM:00.00") ytreq1.getFull() ytreq2 = YTs("xLINKxPASTExHEREx","xYOURxVIDEOxPROBABLYxNEEDSxAxTITLEx") ytreq2.getSimple()