def show_homepage(): web_list = [] url = 'https://ideamark.github.io' name = 'Corpus Page' web_list.append(common.url_to_html(url, name)) url = 'https://github.com/ideamark' name = 'Project Page' web_list.append(common.url_to_html(url, name)) return '\r'.join(web_list)
def baidu_search(keyword): if not keyword: return p = {'wd': keyword} url = 'http://www.baidu.com/s?' + urllib.parse.urlencode(p) return common.url_to_html(url)
def show_homepage(): url = 'http://breadbot.fun' name = 'Breadbot.Fun' return common.url_to_html(url, name)
def corpus_search(keyword): if not keyword: return keyword = keyword.replace(' ', '+') url = 'https://github.com/ideamark/ideamark.github.io/search?q=' + keyword return common.url_to_html(url)
def show_wiki(): url = 'http://cloud.breadbot.fun:8080/#!wiki/index.md' name = 'Wiki' return common.url_to_html(url, name)
def show_homepage(): url = 'https://ideamark.github.io' name = 'Home Page' return common.url_to_html(url, name)