Skip to content

Commit eb2d067

Browse files
committed
revert "test url requests"
This reverts commit 1a3b439.
1 parent 73b3e44 commit eb2d067

File tree

1 file changed

+2
-31
lines changed

1 file changed

+2
-31
lines changed

paper3_Scents/GeneratingScentExplanations.ipynb

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -915,35 +915,6 @@
915915
"#### Read in sample space from csv file & create list of exmol Examples from it"
916916
]
917917
},
918-
{
919-
"cell_type": "code",
920-
"execution_count": null,
921-
"metadata": {},
922-
"outputs": [],
923-
"source": [
924-
"import requests\n",
925-
"\n",
926-
"filename = 'figshare-38472275'\n",
927-
"url = \"https://figshare.com/ndownloader/files/38472275\"\n",
928-
"r = requests.get(url)\n",
929-
"with open(filename, 'wb') as f:\n",
930-
" f.write(r.content)"
931-
]
932-
},
933-
{
934-
"cell_type": "code",
935-
"execution_count": null,
936-
"metadata": {},
937-
"outputs": [],
938-
"source": [
939-
"url = \"https://figshare.com/ndownloader/files/38472275\"\n",
940-
"headers = {\n",
941-
" 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'\n",
942-
"}\n",
943-
"request = urllib.request.Request(url, headers=headers)\n",
944-
"filename, headers = urllib.request.urlretrieve(request)\n"
945-
]
946-
},
947918
{
948919
"cell_type": "code",
949920
"execution_count": null,
@@ -1135,7 +1106,7 @@
11351106
],
11361107
"metadata": {
11371108
"kernelspec": {
1138-
"display_name": "exmol_py312",
1109+
"display_name": "Python 3 (ipykernel)",
11391110
"language": "python",
11401111
"name": "python3"
11411112
},
@@ -1149,7 +1120,7 @@
11491120
"name": "python",
11501121
"nbconvert_exporter": "python",
11511122
"pygments_lexer": "ipython3",
1152-
"version": "3.12.9"
1123+
"version": "3.9.4"
11531124
}
11541125
},
11551126
"nbformat": 4,

0 commit comments

Comments
 (0)