You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,23 @@ python src/main.py
44
44
45
45
The scraper will output a JSON file called `data.json` in the same directory as the scraper.
46
46
47
-
You can modify the scraper to scrape other terms by changing the `year`, `quarter`, and `college_code` variables in `src/config.py`.
47
+
#### Automatic Quarter Detection
48
+
49
+
The scraper now automatically detects the current Drexel quarter based on the current date. You no longer need to manually update the `year` and `quarter` values in `src/config.py`. The system uses the following schedule:
50
+
51
+
-**Fall Quarter (15)**: July 1 - September 27
52
+
-**Winter Quarter (25)**: September 28 - January 15
53
+
-**Spring Quarter (35)**: January 16 - April 14
54
+
-**Summer Quarter (45)**: April 15 - June 30
55
+
56
+
If you need to override the automatic detection (e.g., for testing or scraping a specific past/future quarter), you can set the `DREXEL_YEAR` and `DREXEL_QUARTER` environment variables:
57
+
58
+
```bash
59
+
export DREXEL_YEAR=2024
60
+
export DREXEL_QUARTER=35 # Spring quarter
61
+
```
62
+
63
+
You can still modify the `college_code` variable in `src/config.py` to scrape a specific college.
48
64
49
65
To view all the options that the scraper supports, run `python3 src/main.py --help` on Mac/Linux, or `python src/main.py --help` on Windows.
0 commit comments