Yago Bolivar
commited on
Commit
·
af7a82f
1
Parent(s):
0831af7
fix: update docstring to clarify script functionality for fetching questions and downloading files
Browse files
utilities/fetch_all_questions.py
CHANGED
@@ -3,6 +3,12 @@ import os
|
|
3 |
import json
|
4 |
from dotenv import load_dotenv
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
load_dotenv()
|
7 |
|
8 |
BASE_URL = os.getenv("BASE_URL")
|
|
|
3 |
import json
|
4 |
from dotenv import load_dotenv
|
5 |
|
6 |
+
''' This script fetches all questions from the API and downloads associated files.
|
7 |
+
It saves the questions to a JSON file and downloads the files to a local
|
8 |
+
directory with name "downloaded_files".
|
9 |
+
Questions are saved in "new_gaia_questions.json".
|
10 |
+
'''
|
11 |
+
|
12 |
load_dotenv()
|
13 |
|
14 |
BASE_URL = os.getenv("BASE_URL")
|