Skip to content

Commit 5b4b2fc

Browse files
committed
make the contact info in the User-Agent match the school
1 parent 7d2bf08 commit 5b4b2fc

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

extras/lib/school.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class SchoolText:
99
id: str
1010
school_name: str
1111
school_slug: str
12+
email: str
1213
color: str
1314
course_name: str
1415
term: str
@@ -45,6 +46,7 @@ class SchoolText:
4546
id="columbia",
4647
school_name="Columbia University",
4748
school_slug="columbia",
49+
email="alf2215@columbia.edu",
4850
color="#201D5D",
4951
course_name="Python for Public Policy",
5052
term="Spring 2025",
@@ -89,6 +91,7 @@ class SchoolText:
8991
id="nyu",
9092
school_name="NYU Wagner",
9193
school_slug="nyu",
94+
email="alf9@nyu.edu",
9295
color="#57058b",
9396
course_name="Python Coding for Public Policy",
9497
term="Fall 2025",

lecture_5.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
},
201201
{
202202
"cell_type": "code",
203-
"execution_count": 1,
203+
"execution_count": 10,
204204
"metadata": {
205205
"editable": true,
206206
"slideshow": {
@@ -212,18 +212,18 @@
212212
{
213213
"data": {
214214
"text/plain": [
215-
"'PythonPublicPolicyDemo/0.0 (https://python-public-policy.afeld.me/en/nyu/lecture_5.html#scraping; alf9@nyu.edu) Python-urllib/3.12'"
215+
"'PythonPublicPolicyDemo/0.0 (https://python-public-policy.afeld.me/en/{school_slug}/lecture_5.html#scraping; {email}) Python-urllib/3.12'"
216216
]
217217
},
218-
"execution_count": 1,
218+
"execution_count": 10,
219219
"metadata": {},
220220
"output_type": "execute_result"
221221
}
222222
],
223223
"source": [
224224
"import sys\n",
225225
"\n",
226-
"user_agent = f\"PythonPublicPolicyDemo/0.0 (https://python-public-policy.afeld.me/en/nyu/lecture_5.html#scraping; alf9@nyu.edu) Python-urllib/{sys.version_info.major}.{sys.version_info.minor}\"\n",
226+
"user_agent = f\"PythonPublicPolicyDemo/0.0 (https://python-public-policy.afeld.me/en/{{school_slug}}/lecture_5.html#scraping; {{email}}) Python-urllib/{sys.version_info.major}.{sys.version_info.minor}\"\n",
227227
"user_agent"
228228
]
229229
},

syllabus.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ This is the syllabus for the Spring editions of the course. [Find information ab
4444

4545
## Instructor Information
4646

47-
- **Professor:** [Aidan Feldman](https://www.sipa.columbia.edu/communities-connections/faculty/aidan-feldman), alf2215@columbia.edu
47+
- **Professor:** [Aidan Feldman](https://www.sipa.columbia.edu/communities-connections/faculty/aidan-feldman), {{email}}
4848
- **Readers:**
4949
- Section 1: Claire Li, ml4981@columbia.edu
5050
- Section 2: Serena Ye, sy3205@columbia.edu
@@ -68,7 +68,7 @@ This is the syllabus for the Spring editions of the course. [Find information ab
6868

6969
## Instructor Information
7070

71-
- **Professor:** [Aidan Feldman](https://wagner.nyu.edu/community/faculty/aidan-feldman), alf9@nyu.edu
71+
- **Professor:** [Aidan Feldman](https://wagner.nyu.edu/community/faculty/aidan-feldman), {{email}}
7272
- **Office Hours:** By appointment; email the instructor
7373

7474
{% endif -%}

0 commit comments

Comments
 (0)