Closed hpincket closed 8 years ago
My tentative solution is in 4b6fd3bab87c7202a1a76a43a549c611c8a6c009. We should be deepcopy'ing a dictionary that callers then use to form a request. They get this dictionary by using a method which performs the deepcopy.
Another quick task. I think there are three places in the scraper where I define a 'header' dict which is used for making http requests to selfservice. Notice that 3/4 of the headers are the same in all 3 methods (Only the 'Referer' header is different). It would be nice to keep those other three headers in one place associated with the class. Then the methods can basically add the 'Referer' header before making their request. This will shorten our code and make it easier to maintain.
Current:
Possible New:
I know very little about python Object Oriented programming. Should it be static? private? idk!