def fetch(self): # avg process time: 0.14827052116394043 seconds ret = get_url('http://en.wikipedia.org/wiki/' + self.page_title.replace(' ', '_')) return ret
def fetch(self): # TODO need rev_id return get_url('http://en.collaborativetrust.com/WikiTrust/RemoteAPI?method=quality&revid=' + str(self.page_id))
def send_toolserver_log(self, action, start_time=0): params = {"action": action, "hostname": self.host_machine, "params": self.start_cmd, "start_time": start_time} try: wapiti.get_url("http://toolserver.org/~slaporte/rs/writelog/", params=params) except Exception as e: print "Error logging:", e