Skip to content

Commit ceb292c

Browse files
authored
(bug) trust registrar ca bundle (#530)
1 parent 5c9a070 commit ceb292c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tigerpath/scraper/scrape_registrar.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from concurrent.futures import ThreadPoolExecutor
1212

1313
import cloudscraper
14+
import certifi
1415
import requests
1516

1617
_REGISTRAR_PAGE_URL = "https://registrar.princeton.edu/course-offerings"
@@ -32,6 +33,7 @@ def _fetch_registrar_page():
3233
_REGISTRAR_PAGE_URL,
3334
headers={"User-Agent": _USER_AGENT},
3435
timeout=30,
36+
verify=certifi.where(),
3537
)
3638
resp.raise_for_status()
3739
html = resp.text

0 commit comments

Comments
 (0)