Skip to content

Commit

Permalink
fixed json parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
markwilkinson committed Dec 1, 2024
1 parent e7376c8 commit 329e26d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/FLAIR-GG/driada.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@
" sys.exit(\"you didn't change the key!\")\n",
"\n",
"\n",
"\n",
"response = requests.get(url)\n",
"response = json.loads(response.content)\n",
"# print(response)\n",
"# site = [\"sample1\", \"sample2\"]\n",
"count = [100, 3]\n",
"for provider in response.keys():\n",
" print(\"Provider: {}\".format(provider))\n",
" data = response[provider]\n",
"\n",
" print(provider)\n",
" content = response[provider]\n",
" data = json.loads(content)\n",
" print(data[\"Taxon\"])\n",
" print(data[\"Categoria\"])\n",
" print(\"\")\n",
Expand Down

0 comments on commit 329e26d

Please sign in to comment.