fix unicode encode error in manual mode

This commit is contained in:
Ritiek Malhotra
2017-02-09 18:22:05 +05:30
committed by GitHub
parent 8d339fc966
commit 2cf0a6f768

View File

@@ -40,7 +40,7 @@ def searchYT(number):
print('') print('')
for x in items_parse.find_all('h3', {'class':'yt-lockup-title'}): for x in items_parse.find_all('h3', {'class':'yt-lockup-title'}):
if not x.find('channel') == -1 or not x.find('googleads') == -1: if not x.find('channel') == -1 or not x.find('googleads') == -1:
print(str(check) + '. ' + x.get_text()) print((str(check) + '. ' + x.get_text()).encode('utf-8'))
links.append(x.find('a')['href']) links.append(x.find('a')['href'])
check += 1 check += 1
is_error = True is_error = True