-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
20 lines (14 loc) · 761 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import os
import pprint
import sys
import search_on_youtube
from contextlib import redirect_stdout
result = search_on_youtube.search_on_youtube(search_keyword="Borderline", artist_keyword='Juice=Juice',
api_key='AIzaSyC4rd76PUGRfPZlcS9q-28VB1nV34mZv4Y', use_itunes_search=True)
pprint.pprint(result, indent=4)
sys.exit()
with redirect_stdout(open(os.devnull, 'w', encoding='utf-8-sig')):
result = search_on_youtube.search_on_youtube(search_keyword='ポップミュージック', artist_keyword='KAN',
api_key='AIzaSyC4rd76PUGRfPZlcS9q-28VB1nV34mZv4Y',
use_itunes_search=True)
pprint.pprint(result, indent=4)