|
|
@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
import html
|
|
|
|
|
|
|
|
|
|
|
|
import fuzzywuzzy.fuzz
|
|
|
|
import fuzzywuzzy.fuzz
|
|
|
|
import fuzzywuzzy.process
|
|
|
|
import fuzzywuzzy.process
|
|
|
|
import googleapiclient
|
|
|
|
import googleapiclient
|
|
|
@ -46,10 +48,10 @@ class Youtube(object):
|
|
|
|
result.append(dict(
|
|
|
|
result.append(dict(
|
|
|
|
kind=kind,
|
|
|
|
kind=kind,
|
|
|
|
url=url,
|
|
|
|
url=url,
|
|
|
|
title=item['snippet']['title'],
|
|
|
|
title=html.unescape(item['snippet']['title']),
|
|
|
|
description=item['snippet']['description'],
|
|
|
|
description=html.unescape(item['snippet']['description']),
|
|
|
|
thumbnail_url=get_thumbnail_url(item['snippet']['thumbnails']),
|
|
|
|
thumbnail_url=get_thumbnail_url(item['snippet']['thumbnails']),
|
|
|
|
channel_title=channel['snippet']['title'],
|
|
|
|
channel_title=html.unescape(channel['snippet']['title']),
|
|
|
|
channel_url='{0}/c/{1}'.format(BASE_URL, channel['snippet']['customUrl']),
|
|
|
|
channel_url='{0}/c/{1}'.format(BASE_URL, channel['snippet']['customUrl']),
|
|
|
|
channel_thumbnail_url=get_thumbnail_url(channel['snippet']['thumbnails'])))
|
|
|
|
channel_thumbnail_url=get_thumbnail_url(channel['snippet']['thumbnails'])))
|
|
|
|
count -= resp['pageInfo']['resultsPerPage']
|
|
|
|
count -= resp['pageInfo']['resultsPerPage']
|
|
|
|