uncomment chinook

This commit is contained in:
Ankush Gola
2024-06-12 13:26:18 -07:00
parent f96ff9386b
commit e21a0d69fb
+26 -18
View File
@@ -73,29 +73,37 @@
},
{
"cell_type": "code",
"execution_count": 3,
"outputs": [],
"execution_count": 19,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"File downloaded and saved as Chinook.db\n"
]
}
],
"source": [
"# import requests\n",
"# \n",
"# url = \"https://storage.googleapis.com/benchmarks-artifacts/chinook/Chinook.db\"\n",
"# \n",
"# response = requests.get(url)\n",
"# \n",
"# if response.status_code == 200:\n",
"# # Open a local file in binary write mode\n",
"# with open(\"Chinook.db\", \"wb\") as file:\n",
"# # Write the content of the response (the file) to the local file\n",
"# file.write(response.content)\n",
"# print(\"File downloaded and saved as Chinook.db\")\n",
"# else:\n",
"# print(f\"Failed to download the file. Status code: {response.status_code}\")"
"import requests\n",
"\n",
"url = \"https://storage.googleapis.com/benchmarks-artifacts/chinook/Chinook.db\"\n",
"\n",
"response = requests.get(url)\n",
"\n",
"if response.status_code == 200:\n",
" # Open a local file in binary write mode\n",
" with open(\"Chinook.db\", \"wb\") as file:\n",
" # Write the content of the response (the file) to the local file\n",
" file.write(response.content)\n",
" print(\"File downloaded and saved as Chinook.db\")\n",
"else:\n",
" print(f\"Failed to download the file. Status code: {response.status_code}\")"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2024-06-12T20:18:10.130822Z",
"start_time": "2024-06-12T20:18:10.123796Z"
"end_time": "2024-06-12T20:26:06.460618Z",
"start_time": "2024-06-12T20:26:06.025590Z"
}
},
"id": "64b0bf1b14c2e902"