-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathyoutube.gen
26 lines (18 loc) · 927 Bytes
/
youtube.gen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# root
## use: youtube_search, write_file, execute_bash_command, execute_python_script
Use write file, bash commands, python scripts.
Find ten youtube videos related to AI. Sort by the number of views.
Save videos to ai_videos.csv with video title, url, views, channel name,
channel url, subscribers count.
At the end check the file that its content satisfies the
expected task result. If the file does not correspond to the expected
result, try to solve the task with a new approach to calling youtube search.
When finished, display the name of the file in which the data is saved.
# youtube_search
## input: search query, search limit
## use: execute_python_script, execute_bash_command
## keep_context: false
Use `pytube` or `youtube-search-python`.
Do not use solutions where an API key or credentials are required.
If there were errors after code execution, refine the code to
fix them and run the code again.