I'm using python version 2.7.* and i need to get youtube playlist. I do it like this:
import urllib
from xml.dom import minidom
playlist_xml = str(urllib.urlopen('https://gdata.youtube.com/feeds/api/playlists/PLKwibIpsTqDyV6NgiJmO-x0yKfqWjApwp?v=2').read())
playlist = minidom.parse(playlist_xml)
The problem is that i can't parse the result…
Traceback (most recent call last):
File "/Users/Python/parser.py", line 11, in <module>
playlist = minidom.parse(playlist_xml)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/dom/minidom.py", line 1914, in parse
return expatbuilder.parse(file)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/dom/expatbuilder.py", line 922, in parse
fp = open(file, 'rb')
IOError: [Errno 63] File name too long: