Spaces:
Running
Running
DebasishDhal99
commited on
Commit
·
153a135
1
Parent(s):
39d0fe5
Update playlists_mismatch.py
Browse files- playlists_mismatch.py +3 -0
playlists_mismatch.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
from urllib.parse import urlparse, parse_qs
|
2 |
import re
|
3 |
|
|
|
|
|
|
|
4 |
def playlists_mismatch_func(playlistlink1, playlistlink2, output = 'link'):
|
5 |
"""Return the ids of videos that are only one of the playlists, and not in the other"""
|
6 |
|
|
|
1 |
from urllib.parse import urlparse, parse_qs
|
2 |
import re
|
3 |
|
4 |
+
import os
|
5 |
+
api_key = os.getenv("api_key_secret")
|
6 |
+
youtube = build('youtube', 'v3', developerKey=api_key)
|
7 |
def playlists_mismatch_func(playlistlink1, playlistlink2, output = 'link'):
|
8 |
"""Return the ids of videos that are only one of the playlists, and not in the other"""
|
9 |
|