Beispiel #1
0
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)
Beispiel #2
0
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)
Beispiel #3
0
def show_homepage():
    url = 'http://breadbot.fun'
    name = 'Breadbot.Fun'
    return common.url_to_html(url, name)
Beispiel #4
0
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)
Beispiel #5
0
def show_wiki():
    url = 'http://cloud.breadbot.fun:8080/#!wiki/index.md'
    name = 'Wiki'
    return common.url_to_html(url, name)
Beispiel #6
0
def show_homepage():
    url = 'https://ideamark.github.io'
    name = 'Home Page'
    return common.url_to_html(url, name)