def __init__(self, URL): """ Create a new scraper object @param URL: Web address to get data from """ self.URL = URL self.log = logging.getLogger(__name__) self.log.debug("Scraper for %s created", self.URL) def run(self): """ Run the program """ self.log.debug("Running") #Fetch the data data = self.getData() #Process it output = self.parseData(data.json()) #Return the output return output