예제 #1
0
    def get_json_urls(self):
        """
        Gets the JSON URLs and stores them both in a standard list and
        in a Python set. We store them in a standard list because the
        Datastore API can only handle a list as opposed to a Python set.
        """
        gi = GetImageURLs(self.json_url)
        self.urls = gi.get_image_url()

        # Turn it into a Python set
        self.urls_from_json = Set(self.urls)
예제 #2
0
    def get_json_urls(self):
        """
        Gets the JSON URLs and stores them both in a standard list and
        in a Python set. We store them in a standard list because the
        Datastore API can only handle a list as opposed to a Python set.
        """
        gi = GetImageURLs(self.json_url)
        self.urls = gi.get_image_url()
        logging.info("Retrieving json URL %s " % self.json_url)

        # Turn it into a Python set
        self.state['json'] = Set(self.urls)
예제 #3
0
 def get_json_schema(self):
     gi = GetImageURLs(self.json_url)
     self.json_schema = gi.get_json_schema()