コード例 #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)
コード例 #2
0
ファイル: web.py プロジェクト: 13927729580/breadbot
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)
コード例 #3
0
ファイル: web.py プロジェクト: 13927729580/breadbot
def show_homepage():
    url = 'http://breadbot.fun'
    name = 'Breadbot.Fun'
    return common.url_to_html(url, name)
コード例 #4
0
ファイル: web.py プロジェクト: 13927729580/breadbot
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)
コード例 #5
0
ファイル: web.py プロジェクト: ideamark/breadbot
def show_wiki():
    url = 'http://cloud.breadbot.fun:8080/#!wiki/index.md'
    name = 'Wiki'
    return common.url_to_html(url, name)
コード例 #6
0
def show_homepage():
    url = 'https://ideamark.github.io'
    name = 'Home Page'
    return common.url_to_html(url, name)