2016-12-16 00:29:59 -06:00
|
|
|
"""The pickle scraper reads a pickled file saved by the pickle outputter."""
|
|
|
|
|
2016-11-27 01:58:39 -06:00
|
|
|
import pickle
|
|
|
|
|
2016-12-16 00:29:59 -06:00
|
|
|
def scrape(source):
|
|
|
|
"""Load the given pickle file into an object."""
|
2016-11-27 01:58:39 -06:00
|
|
|
with open(source, "rb") as in_file:
|
|
|
|
return pickle.load(in_file)
|