Thread
:
Open url to perform operations
View Single Post
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
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())
__________________
Web Programming Tutorial
Python Web Programming Tutorial
Programming Tutorial for absolute beginners
Kakao
View Public Profile
Find More Posts by Kakao