diff --git a/paper3_Scents/GeneratingScentExplanations.ipynb b/paper3_Scents/GeneratingScentExplanations.ipynb index bbc9d3d..4860f3b 100644 --- a/paper3_Scents/GeneratingScentExplanations.ipynb +++ b/paper3_Scents/GeneratingScentExplanations.ipynb @@ -915,6 +915,35 @@ "#### Read in sample space from csv file & create list of exmol Examples from it" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import requests\n", + "\n", + "filename = 'figshare-38472275'\n", + "url = \"https://figshare.com/ndownloader/files/38472275\"\n", + "r = requests.get(url)\n", + "with open(filename, 'wb') as f:\n", + " f.write(r.content)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "url = \"https://figshare.com/ndownloader/files/38472275\"\n", + "headers = {\n", + " '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", + "}\n", + "request = urllib.request.Request(url, headers=headers)\n", + "filename, headers = urllib.request.urlretrieve(request)\n" + ] + }, { "cell_type": "code", "execution_count": null, @@ -1106,7 +1135,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3 (ipykernel)", + "display_name": "exmol_py312", "language": "python", "name": "python3" }, @@ -1120,7 +1149,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.4" + "version": "3.12.9" } }, "nbformat": 4,