Update tools/youtube_search.py
Browse files- tools/youtube_search.py +0 -3
tools/youtube_search.py
CHANGED
|
@@ -21,7 +21,6 @@ def youtube_search(query):
|
|
| 21 |
type='video'
|
| 22 |
)
|
| 23 |
response = request.execute()
|
| 24 |
-
print(f"Stap 5 {response}")
|
| 25 |
|
| 26 |
for item in response.get('items', []):
|
| 27 |
print(f"Title: {item['snippet']['title']}")
|
|
@@ -29,8 +28,6 @@ def youtube_search(query):
|
|
| 29 |
print()
|
| 30 |
return_result.append({'aquery': query, 'titlevideo': item['snippet']['title'], 'videoId': item['id']['videoId']})
|
| 31 |
|
| 32 |
-
|
| 33 |
-
print("Stap 6")
|
| 34 |
return return_result
|
| 35 |
|
| 36 |
class YoutubeSearchTool(Tool):
|
|
|
|
| 21 |
type='video'
|
| 22 |
)
|
| 23 |
response = request.execute()
|
|
|
|
| 24 |
|
| 25 |
for item in response.get('items', []):
|
| 26 |
print(f"Title: {item['snippet']['title']}")
|
|
|
|
| 28 |
print()
|
| 29 |
return_result.append({'aquery': query, 'titlevideo': item['snippet']['title'], 'videoId': item['id']['videoId']})
|
| 30 |
|
|
|
|
|
|
|
| 31 |
return return_result
|
| 32 |
|
| 33 |
class YoutubeSearchTool(Tool):
|