YouTube-Viewer
YouTube-Viewer copied to clipboard
Add support for YouTube shorts.
Add support for youtube shorts. => #554 Improve logging and error handling.
Get cookies and history directory in Google Chrome
cookies_path = os.path.join(os.environ['LOCALAPPDATA'], r'Google\Chrome\User Data\Default\Cookies') history_path = os.path.join(os.environ['LOCALAPPDATA'], r'Google\Chrome\User Data\Default\History')
Delete cookies and history try: os. remove(cookies_path) os. remove(history_path) print("Cookies and History cleared successfully.") except Exception as e: print("Error while clearing cookies and history:", e)