def getChart(self, company): if self.validateCompany(company): pcb = pcbolsaSearch() return pcb.getChart(company) self.logger.info("Company '{0}' does not exist".format(company)) return None
def getChart(self, company): if self.validateCompany(company): #y = yahooAPI() #return "http://pcbolsa.com/graficopc.aspx?ISIN=ES0105200002&Plaza=55&Time=18:00:39&Mov=0&Sitio=1&Tool=1" #return y.getChart(company) pcb = pcbolsaSearch() return pcb.getChart(company) self.logger.info("Company '{0}' does not exist".format(company)) return None
def getChart(self,company): if self.validateCompany(company): #y = yahooAPI() #return "http://pcbolsa.com/graficopc.aspx?ISIN=ES0105200002&Plaza=55&Time=18:00:39&Mov=0&Sitio=1&Tool=1" #return y.getChart(company) pcb = pcbolsaSearch() return pcb.getChart(company) self.logger.info("Company '{0}' does not exist".format(company)) return None
def run(self, msg): results = {"text": "", "replay_markup": ""} logger = logging.getLogger("Main.Dividend") logger.debug("Running Dividend plugin") pcbolsa = pcbolsaSearch() results["text"] = self.beautify(pcbolsa.getDividend()) results["replay_markup"] = None logger.debug("Finished Dividend plugin") return results