-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug from trying to scrape all trips
I found a scraper (hello, Scrapy user!) trying to scrape all trips from https://mitoc-trips.mit.edu/trips/?after=0001-10-17 The server crashed because I mistakenly assumed you can subtract 365 days from any given year. Let's not do that. Separately, with *thousands* of trips, this view is getting pretty slow. To monitor (and perhaps limit) scrapers, I might try to make the view a bit more locked down. I don't *want* to paginate, but I don't want abuse either.
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters