def parse_market_data(typeIDs, locationID): ec = EVECentral(url_fetch_func=lambda url: urlopen(url).read()) try: if locationID > 30000000: data = ec.market_stats(type_ids=typeIDs, system=locationID) else: data = ec.market_stats(type_ids=typeIDs, regions=locationID) except Exception, ex: log.error('Could not update locationID {0}: {1}'.format(locationID, format_exc(ex))) return
def via_eve_central(self): eve_central = EVECentral() price_data = eve_central.market_stats(**self.payload) return price_data.itervalues()