View Single Post
Old 01-09-2011, 04:33 PM   PM User | #3
MetalMichael
New Coder

 
Join Date: Aug 2010
Posts: 27
Thanks: 4
Thanked 0 Times in 0 Posts
MetalMichael is an unknown quantity at this point
Ah, thanks, still thinking in a non python mind-set...

However, when I try this, I get the error:
TypeError: can't use a string pattern on a bytes-like object



edit: thanks, works when I use
Code:
youtubelink = re.search(youtubere, youtubesearch.read().decode('utf-8')

Last edited by MetalMichael; 01-09-2011 at 04:39 PM..
MetalMichael is offline   Reply With Quote