Récup des résultats au dnb

This commit is contained in:
Bertrand Benjamin 2018-07-12 00:06:35 +02:00
parent b0b4b2d4e6
commit cf76e02f1f
2 changed files with 631 additions and 18 deletions

View File

@ -1,22 +1,22 @@
Élève,CM1,CM2,CL3 Élève,CM1,CM2,CL3
ABDALLAH Rachma,1,2,2 ABDALLAH Rachma,1.00,2.00,2.00
ABDOU Kassim,,, ABDOU Kassim,,,
AHAMADI Irchadi,3,3,2 AHAMADI Irchadi,3.00,3.00,2.00
AHAMED Mikidadi,2,2,1 AHAMED Mikidadi,2.00,2.00,1.00
ANLI El Anziz,,, ANLI El Anziz,,,
ANSSURDINE Zaidou,1,, ANSSURDINE Zaidou,1.00,,
BACAR MOUSTADRANE Rakchat,0,2,0 BACAR MOUSTADRANE Rakchat,0.00,2.00,0.00
BOINA Chadia,1,2,1 BOINA Chadia,1.00,2.00,1.00
CHANFI Fayçoil,2,2, CHANFI Fayçoil,2.00,2.00,
CHARIF Djaël,2,3, CHARIF Djaël,2.00,3.00,
COMBO Doulka-Rynaini,0,, COMBO Doulka-Rynaini,0.00,,
MAGNELE Chamsidine,2,2,1 MAGNELE Chamsidine,2.00,2.00,1.00
MBAROUKOU Dania,3,3,2 MBAROUKOU Dania,3.00,3.00,2.00
MIRADJI Issoufi,3,3,2 MIRADJI Issoufi,3.00,3.00,2.00
NIDHOIMI El-Fahar,3,2,2 NIDHOIMI El-Fahar,3.00,2.00,2.00
OUSSENI Fayadhui,1,1, OUSSENI Fayadhui,1.00,1.00,
SAÏD Dalila,3,3,2 SAID Dalila,3.00,3.00,2.00
SAID OMAR Nadjoi,3,3,2 SAID OMAR Nadjoi,3.00,3.00,2.00
SALIM Haïridine,,, SALIM Haïridine,,,
TSIMPOU Zoubert,0,1,1 TSIMPOU Zoubert,0.00,1.00,1.00
Rachida,1,2,2 SAID Rachida,1.00,2.00,2.00

1 Élève CM1 CM2 CL3
2 ABDALLAH Rachma 1 1.00 2 2.00 2 2.00
3 ABDOU Kassim
4 AHAMADI Irchadi 3 3.00 3 3.00 2 2.00
5 AHAMED Mikidadi 2 2.00 2 2.00 1 1.00
6 ANLI El Anziz
7 ANSSURDINE Zaidou 1 1.00
8 BACAR MOUSTADRANE Rakchat 0 0.00 2 2.00 0 0.00
9 BOINA Chadia 1 1.00 2 2.00 1 1.00
10 CHANFI Fayçoil 2 2.00 2 2.00
11 CHARIF Djaël 2 2.00 3 3.00
12 COMBO Doulka-Rynaini 0 0.00
13 MAGNELE Chamsidine 2 2.00 2 2.00 1 1.00
14 MBAROUKOU Dania 3 3.00 3 3.00 2 2.00
15 MIRADJI Issoufi 3 3.00 3 3.00 2 2.00
16 NIDHOIMI El-Fahar 3 3.00 2 2.00 2 2.00
17 OUSSENI Fayadhui 1 1.00 1 1.00
18 SAÏD Dalila SAID Dalila 3 3.00 3 3.00 2 2.00
19 SAID OMAR Nadjoi 3 3.00 3 3.00 2 2.00
20 SALIM Haïridine
21 TSIMPOU Zoubert 0 0.00 1 1.00 1 1.00
22 Rachida SAID Rachida 1 1.00 2 2.00 2 2.00

613
Notes/GetDNB.ipynb Normal file
View File

@ -0,0 +1,613 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
"import requests\n",
"import pandas as pd"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Résultats des 306"
]
},
{
"cell_type": "code",
"execution_count": 49,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style>\n",
" .dataframe thead tr:only-child th {\n",
" text-align: right;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: left;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Élève</th>\n",
" <th>CM1</th>\n",
" <th>CM2</th>\n",
" <th>CL3</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>ABDALLAH Rachma</td>\n",
" <td>1.0</td>\n",
" <td>2.0</td>\n",
" <td>2.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>ABDOU Kassim</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>AHAMADI Irchadi</td>\n",
" <td>3.0</td>\n",
" <td>3.0</td>\n",
" <td>2.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>AHAMED Mikidadi</td>\n",
" <td>2.0</td>\n",
" <td>2.0</td>\n",
" <td>1.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>ANLI El Anziz</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>ANSSURDINE Zaidou</td>\n",
" <td>1.0</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>BACAR MOUSTADRANE Rakchat</td>\n",
" <td>0.0</td>\n",
" <td>2.0</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>BOINA Chadia</td>\n",
" <td>1.0</td>\n",
" <td>2.0</td>\n",
" <td>1.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>CHANFI Fayçoil</td>\n",
" <td>2.0</td>\n",
" <td>2.0</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>CHARIF Djaël</td>\n",
" <td>2.0</td>\n",
" <td>3.0</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
" <td>COMBO Doulka-Rynaini</td>\n",
" <td>0.0</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11</th>\n",
" <td>MAGNELE Chamsidine</td>\n",
" <td>2.0</td>\n",
" <td>2.0</td>\n",
" <td>1.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>12</th>\n",
" <td>MBAROUKOU Dania</td>\n",
" <td>3.0</td>\n",
" <td>3.0</td>\n",
" <td>2.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13</th>\n",
" <td>MIRADJI Issoufi</td>\n",
" <td>3.0</td>\n",
" <td>3.0</td>\n",
" <td>2.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>14</th>\n",
" <td>NIDHOIMI El-Fahar</td>\n",
" <td>3.0</td>\n",
" <td>2.0</td>\n",
" <td>2.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>15</th>\n",
" <td>OUSSENI Fayadhui</td>\n",
" <td>1.0</td>\n",
" <td>1.0</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>16</th>\n",
" <td>SAID Dalila</td>\n",
" <td>3.0</td>\n",
" <td>3.0</td>\n",
" <td>2.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>17</th>\n",
" <td>SAID OMAR Nadjoi</td>\n",
" <td>3.0</td>\n",
" <td>3.0</td>\n",
" <td>2.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>18</th>\n",
" <td>SALIM Haïridine</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>19</th>\n",
" <td>TSIMPOU Zoubert</td>\n",
" <td>0.0</td>\n",
" <td>1.0</td>\n",
" <td>1.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>20</th>\n",
" <td>SAID Rachida</td>\n",
" <td>1.0</td>\n",
" <td>2.0</td>\n",
" <td>2.0</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Élève CM1 CM2 CL3\n",
"0 ABDALLAH Rachma 1.0 2.0 2.0\n",
"1 ABDOU Kassim NaN NaN NaN\n",
"2 AHAMADI Irchadi 3.0 3.0 2.0\n",
"3 AHAMED Mikidadi 2.0 2.0 1.0\n",
"4 ANLI El Anziz NaN NaN NaN\n",
"5 ANSSURDINE Zaidou 1.0 NaN NaN\n",
"6 BACAR MOUSTADRANE Rakchat 0.0 2.0 0.0\n",
"7 BOINA Chadia 1.0 2.0 1.0\n",
"8 CHANFI Fayçoil 2.0 2.0 NaN\n",
"9 CHARIF Djaël 2.0 3.0 NaN\n",
"10 COMBO Doulka-Rynaini 0.0 NaN NaN\n",
"11 MAGNELE Chamsidine 2.0 2.0 1.0\n",
"12 MBAROUKOU Dania 3.0 3.0 2.0\n",
"13 MIRADJI Issoufi 3.0 3.0 2.0\n",
"14 NIDHOIMI El-Fahar 3.0 2.0 2.0\n",
"15 OUSSENI Fayadhui 1.0 1.0 NaN\n",
"16 SAID Dalila 3.0 3.0 2.0\n",
"17 SAID OMAR Nadjoi 3.0 3.0 2.0\n",
"18 SALIM Haïridine NaN NaN NaN\n",
"19 TSIMPOU Zoubert 0.0 1.0 1.0\n",
"20 SAID Rachida 1.0 2.0 2.0"
]
},
"execution_count": 49,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"csv_306 = pd.read_csv(\"./306.csv\")\n",
"csv_306 = csv_306"
]
},
{
"cell_type": "code",
"execution_count": 48,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"-------------------\n",
"ABDALLAH Rachma\n",
"[{'nom': 'ABDALLAH', 'prenoms': 'Rachma', 'resultat': 'Admis Mention Assez Bien'}, {'nom': 'ABDALLAH', 'prenoms': 'Rachma', 'resultat': 'Admis'}]\n",
"-------------------\n",
"ABDOU Kassim\n",
"[]\n",
"-------------------\n",
"AHAMADI Irchadi\n",
"[{'nom': 'AHAMADI', 'prenoms': 'Irchadi', 'resultat': 'Admis Mention Bien'}]\n",
"-------------------\n",
"AHAMED Mikidadi\n",
"[{'nom': 'AHAMED', 'prenoms': 'Mikidadi', 'resultat': 'Admis Mention Assez Bien'}]\n",
"-------------------\n",
"ANLI El Anziz\n",
"[{'nom': 'ANLI', 'prenoms': 'El Anziz', 'resultat': 'Admis Mention Assez Bien'}]\n",
"-------------------\n",
"ANSSURDINE Zaidou\n",
"[]\n",
"-------------------\n",
"BACAR MOUSTADRANE Rakchat\n",
"[]\n",
"-------------------\n",
"BOINA Chadia\n",
"[{'nom': 'BOINA', 'prenoms': 'Chadia', 'resultat': 'Admis'}]\n",
"-------------------\n",
"CHANFI Fayçoil\n",
"[{'nom': 'CHANFI', 'prenoms': 'Fayçoil', 'resultat': 'Admis'}]\n",
"-------------------\n",
"CHARIF Djaël\n",
"[{'nom': 'CHARIF', 'prenoms': 'Djaël', 'resultat': 'Admis Mention Assez Bien'}]\n",
"-------------------\n",
"COMBO Doulka-Rynaini\n",
"[]\n",
"-------------------\n",
"MAGNELE Chamsidine\n",
"[{'nom': 'MAGNELE', 'prenoms': 'Chamsidine', 'resultat': 'Admis'}]\n",
"-------------------\n",
"MBAROUKOU Dania\n",
"[{'nom': 'MBAROUKOU', 'prenoms': 'Dania', 'resultat': 'Admis Mention Bien'}]\n",
"-------------------\n",
"MIRADJI Issoufi\n",
"[{'nom': 'MIRADJI', 'prenoms': 'Issoufi', 'resultat': 'Admis Mention Bien'}]\n",
"-------------------\n",
"NIDHOIMI El-Fahar\n",
"[{'nom': 'NIDHOIMI', 'prenoms': 'El-Fahar', 'resultat': 'Admis Mention Assez Bien'}]\n",
"-------------------\n",
"OUSSENI Fayadhui\n",
"[{'nom': 'OUSSENI', 'prenoms': 'Fayadhui', 'resultat': 'Admis'}]\n",
"-------------------\n",
"SAID Dalila\n",
"[{'nom': 'SAID', 'prenoms': 'Dalila', 'resultat': 'Admis Mention Bien'}]\n",
"-------------------\n",
"SAID OMAR Nadjoi\n",
"[{'nom': 'SAID OMAR', 'prenoms': 'Nadjoi', 'resultat': 'Admis Mention Assez Bien'}]\n",
"-------------------\n",
"SALIM Haïridine\n",
"[]\n",
"-------------------\n",
"TSIMPOU Zoubert\n",
"[]\n",
"-------------------\n",
"SAID Rachida\n",
"[{'nom': 'SAID', 'prenoms': 'Rachidati', 'resultat': 'Admis'}, {'nom': 'SAID MCHANGAMA', 'prenoms': 'Rachidati', 'resultat': 'Admis'}]\n"
]
}
],
"source": [
"for e in csv_306.iterrows():\n",
" four_letters = e[1]['Élève'][:4]\n",
" surname = e[1]['Élève'].split(' ')[-1]\n",
" req = requests.get(f\"http://resultats.ac-mayotte.fr/publication_A43/publication?filtre={four_letters}&domaine=DNB&groupeDecision=1&session=2018:B:DNB-2.0&entiteResponsable=A43&_=1531345238478\")\n",
" res = req.json()[\"results\"]\n",
" print(\"-------------------\")\n",
" print(e[1]['Élève'])\n",
" print([r for r in res if surname in r['prenoms']])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Résultats des 302"
]
},
{
"cell_type": "code",
"execution_count": 50,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style>\n",
" .dataframe thead tr:only-child th {\n",
" text-align: right;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: left;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Élève</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>ABDALLAH ALLAOUI Taiassima</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>ADANI Ismou</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>AHAMADA Dhoulkamal</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>AHAMADI Asbahati</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>AHAMADI OUSSENI Ansufiddine</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>AHAMED Fayadhi</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>AHMED SAID Hadaïta</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>ALI MADI Anissa</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>ALI Raydel</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>ATTOUMANE ALI Fatima</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
" <td>BACHIROU Elzame</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11</th>\n",
" <td>BINALI Zalida</td>\n",
" </tr>\n",
" <tr>\n",
" <th>12</th>\n",
" <td>BOINA Abdillah Mze Limassi</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13</th>\n",
" <td>BOUDRA Zaankidine</td>\n",
" </tr>\n",
" <tr>\n",
" <th>14</th>\n",
" <td>BOURA Kayssoiria</td>\n",
" </tr>\n",
" <tr>\n",
" <th>15</th>\n",
" <td>HALADI Asna</td>\n",
" </tr>\n",
" <tr>\n",
" <th>16</th>\n",
" <td>HALIDI Soibrata</td>\n",
" </tr>\n",
" <tr>\n",
" <th>17</th>\n",
" <td>HAMEDALY Doulkifly</td>\n",
" </tr>\n",
" <tr>\n",
" <th>18</th>\n",
" <td>IBRAHIM Nassur</td>\n",
" </tr>\n",
" <tr>\n",
" <th>19</th>\n",
" <td>INOUSSA Anchoura</td>\n",
" </tr>\n",
" <tr>\n",
" <th>20</th>\n",
" <td>MOHAMED Nadia</td>\n",
" </tr>\n",
" <tr>\n",
" <th>21</th>\n",
" <td>MOUHOUDHOIRE Izak</td>\n",
" </tr>\n",
" <tr>\n",
" <th>22</th>\n",
" <td>MOUSSRI Bakari</td>\n",
" </tr>\n",
" <tr>\n",
" <th>23</th>\n",
" <td>SAÏD Fatoumia</td>\n",
" </tr>\n",
" <tr>\n",
" <th>24</th>\n",
" <td>SAKOTRA Claudiana</td>\n",
" </tr>\n",
" <tr>\n",
" <th>25</th>\n",
" <td>TOUFAIL Salahou</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Élève\n",
"0 ABDALLAH ALLAOUI Taiassima\n",
"1 ADANI Ismou\n",
"2 AHAMADA Dhoulkamal\n",
"3 AHAMADI Asbahati\n",
"4 AHAMADI OUSSENI Ansufiddine\n",
"5 AHAMED Fayadhi\n",
"6 AHMED SAID Hadaïta\n",
"7 ALI MADI Anissa\n",
"8 ALI Raydel\n",
"9 ATTOUMANE ALI Fatima\n",
"10 BACHIROU Elzame\n",
"11 BINALI Zalida\n",
"12 BOINA Abdillah Mze Limassi\n",
"13 BOUDRA Zaankidine\n",
"14 BOURA Kayssoiria\n",
"15 HALADI Asna\n",
"16 HALIDI Soibrata\n",
"17 HAMEDALY Doulkifly\n",
"18 IBRAHIM Nassur\n",
"19 INOUSSA Anchoura\n",
"20 MOHAMED Nadia\n",
"21 MOUHOUDHOIRE Izak\n",
"22 MOUSSRI Bakari\n",
"23 SAÏD Fatoumia\n",
"24 SAKOTRA Claudiana\n",
"25 TOUFAIL Salahou"
]
},
"execution_count": 50,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"csv_302 = pd.read_csv(\"./302.csv\")\n",
"csv_302 = csv_302\n",
"csv_302"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"-------------------\n",
"ABDALLAH ALLAOUI Taiassima\n",
"[{'nom': 'ABDALLAH ALLAOUI', 'prenoms': 'Taiassima', 'resultat': 'Admis'}]\n",
"-------------------\n",
"ADANI Ismou\n",
"[{'nom': 'ADANI', 'prenoms': 'Ismou', 'resultat': 'Admis Mention Bien'}]\n",
"-------------------\n",
"AHAMADA Dhoulkamal\n",
"[{'nom': 'AHAMADA', 'prenoms': 'Dhoulkamal', 'resultat': 'Admis Mention Bien'}]\n",
"-------------------\n",
"AHAMADI Asbahati\n",
"[{'nom': 'AHAMADI', 'prenoms': 'Asbahati', 'resultat': 'Admis Mention Bien'}]\n",
"-------------------\n",
"AHAMADI OUSSENI Ansufiddine\n",
"[{'nom': 'AHAMADI OUSSENI', 'prenoms': 'Ansufiddine', 'resultat': 'Admis'}]\n",
"-------------------\n",
"AHAMED Fayadhi\n",
"[{'nom': 'AHAMED', 'prenoms': 'Fayadhi', 'resultat': 'Admis'}]\n",
"-------------------\n",
"AHMED SAID Hadaïta\n",
"[{'nom': 'AHMED SAID', 'prenoms': 'Hadaïta', 'resultat': 'Admis Mention Très Bien'}]\n",
"-------------------\n",
"ALI MADI Anissa\n",
"[{'nom': 'ALI MADI', 'prenoms': 'Anissa', 'resultat': 'Admis Mention Très Bien'}]\n",
"-------------------\n",
"ALI Raydel\n",
"[]\n",
"-------------------\n",
"ATTOUMANE ALI Fatima\n",
"[{'nom': 'ATTOUMANE', 'prenoms': 'Fatima', 'resultat': 'Admis Mention Assez Bien'}, {'nom': 'ATTOUMANE ALI', 'prenoms': 'Fatima', 'resultat': 'Admis'}]\n",
"-------------------\n",
"BACHIROU Elzame\n",
"[{'nom': 'BACHIROU', 'prenoms': 'Elzame', 'resultat': 'Admis'}]\n",
"-------------------\n",
"BINALI Zalida\n",
"[{'nom': 'BINALI', 'prenoms': 'Zalida', 'resultat': 'Admis Mention Très Bien'}]\n",
"-------------------\n",
"BOINA Abdillah Mze Limassi\n",
"[{'nom': 'BOINA', 'prenoms': 'Abdillah Mze Limassi', 'resultat': 'Admis Mention Très Bien'}]\n",
"-------------------\n",
"BOUDRA Zaankidine\n",
"[{'nom': 'BOUDRA', 'prenoms': 'Zaankidine', 'resultat': 'Admis'}]\n",
"-------------------\n",
"BOURA Kayssoiria\n",
"[{'nom': 'BOURA', 'prenoms': 'Kayssoiria', 'resultat': 'Admis'}]\n",
"-------------------\n",
"HALADI Asna\n",
"[{'nom': 'HALADI', 'prenoms': 'Asna', 'resultat': 'Admis Mention Très Bien'}]\n"
]
}
],
"source": [
"for e in csv_302.iterrows():\n",
" four_letters = e[1]['Élève'][:4]\n",
" surname = e[1]['Élève'].split(' ')[-1]\n",
" req = requests.get(f\"http://resultats.ac-mayotte.fr/publication_A43/publication?filtre={four_letters}&domaine=DNB&groupeDecision=1&session=2018:B:DNB-2.0&entiteResponsable=A43&_=1531345238478\")\n",
" res = req.json()[\"results\"]\n",
" print(\"-------------------\")\n",
" print(e[1]['Élève'])\n",
" print([r for r in res if surname in r['prenoms']])"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
}
},
"nbformat": 4,
"nbformat_minor": 2
}