def getTwitterHandle(self, person, twitter=None): url = 'http://api.speedrunslive.com/players/' + person['name'] response = nsb_steam.fetchUrl(url) data = nsb_database.jsonToList(response) if data['twitter'] == "": return None return data['twitter']
def fetch(self): #url = nsb_steam.boardUrl(self.lbid, 1, 100) response = nsb_steam.fetchUrl(self.board._url) self.data = self.board.parseResponse(response)
def fetch(self): url = nsb_steam.leaderboardUrl() response = nsb_steam.fetchUrl(url) self.data = nsb_database.xmlToList(response=response, responseType='index')