View Single Post
Old 01-09-2011, 11:44 AM   PM User | #2
Kakao
Regular Coder

 
Join Date: Mar 2006
Location: Brasília, Brazil
Posts: 153
Thanks: 0
Thanked 0 Times in 0 Posts
Kakao is on a distinguished road
urllib.request.urlopen returns a file like object so you need to use the read method of a file like object:

Code:
youtubelink = re.search(youtubere, youtubesearch.read())
Kakao is offline   Reply With Quote