The code failed.
Could anyone help?
I search in stack overflow, and tried some methods, but I can't seem to find any that work.
from urllib.request import urlopen
link = "https://www.youtube.com/live_chat?v=IKQkjWmqQv8&is_popout=1"
f = urlopen(link)
myfile = f.read()
print (myfile)
output_file = open('1.txt','w')
output_file.write(myfile)
output_file.close()