Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandropeca committed Aug 23, 2024
1 parent 8611dae commit fba6cad
Show file tree
Hide file tree
Showing 5 changed files with 1,298 additions and 26 deletions.
24 changes: 13 additions & 11 deletions ads_query.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 21,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -16,7 +16,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 22,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -25,7 +25,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 23,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -41,7 +41,9 @@
"# format the response in a nicely readable format\n",
"results_first = response_first.json()\n",
"\n",
"\n",
"# save it\n",
"with open('data/ads_data_first.json', 'w') as f:\n",
" json.dump(results_first, f, indent=4)\n",
"\n",
"# all papers\n",
"encoded_query_all = urlencode({\"q\": \"author:peca, alessandro\",\n",
Expand All @@ -56,13 +58,13 @@
"results_all = response_all.json()\n",
"\n",
"# save it\n",
"with open('data/ads_data.json', 'w') as f:\n",
" json.dump(results_first, f, indent=4)\n"
"with open('data/ads_data_all.json', 'w') as f:\n",
" json.dump(results_all, f, indent=4)\n"
]
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 24,
"metadata": {},
"outputs": [
{
Expand All @@ -80,10 +82,10 @@
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x14077c150>"
"<matplotlib.legend.Legend at 0x14075b1d0>"
]
},
"execution_count": 14,
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -159,7 +161,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 25,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -515,7 +517,7 @@
" 'citation_count': 2}]"
]
},
"execution_count": 15,
"execution_count": 25,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
Loading

0 comments on commit fba6cad

Please sign in to comment.