Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions extras/lib/school.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class SchoolText:
id: str
school_name: str
school_slug: str
email: str
color: str
course_name: str
term: str
Expand Down Expand Up @@ -45,6 +46,7 @@ class SchoolText:
id="columbia",
school_name="Columbia University",
school_slug="columbia",
email="alf2215@columbia.edu",
color="#201D5D",
course_name="Python for Public Policy",
term="Spring 2025",
Expand Down Expand Up @@ -89,6 +91,7 @@ class SchoolText:
id="nyu",
school_name="NYU Wagner",
school_slug="nyu",
email="alf9@nyu.edu",
color="#57058b",
course_name="Python Coding for Public Policy",
term="Fall 2025",
Expand Down
8 changes: 4 additions & 4 deletions lecture_5.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 10,
"metadata": {
"editable": true,
"slideshow": {
Expand All @@ -212,18 +212,18 @@
{
"data": {
"text/plain": [
"'PythonPublicPolicyDemo/0.0 (https://python-public-policy.afeld.me/en/nyu/lecture_5.html#scraping; alf9@nyu.edu) Python-urllib/3.12'"
"'PythonPublicPolicyDemo/0.0 (https://python-public-policy.afeld.me/en/{school_slug}/lecture_5.html#scraping; {email}) Python-urllib/3.12'"
]
},
"execution_count": 1,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import sys\n",
"\n",
"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",
"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",
"user_agent"
]
},
Expand Down
4 changes: 2 additions & 2 deletions syllabus.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ This is the syllabus for the Spring editions of the course. [Find information ab

## Instructor Information

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

## Instructor Information

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

{% endif -%}
Expand Down