Skip to content

Instantly share code, notes, and snippets.

@ssh0
Created September 21, 2014 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssh0/f296cf0037b81a2f55d6 to your computer and use it in GitHub Desktop.
Save ssh0/f296cf0037b81a2f55d6 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# written by Shotaro Fujimoto, September 2014
logfile = '/home/shotaro/Dropbox/log.txt'
# choose the default browser by comment out
# or you can edit to any browser
browser = {'default':
'firefox -new-tab '
# 'chromium-browser -new-tab '
# 'google-chrome -new-tab '
# 'opera -newtab '
,
}
site = {
# default: Google検索
'default-search': r'https://www.google.co.jp/#q=%s',
# 'w': Wikipedia
'-w': r'https:ja.wikipedia.org/wiki/%s',
# 'n': niconico動画
'-n': r'http://www.nicovideo.jp/search/%s',
# 'p': Google画像検索
#'-p': r'https://www.google.com/search?q=%s&um=1&ie=UTF-8&hl=ja&tbm=isch&source=og&sa=N&tab=wi',
# 'y': Youtubeで検索
'-y': r'http://www.youtube.com/results?search_query=%s&sm=3',
# 'rt' Yahooリアルタイム検索
'-rt': r'http://realtime.search.yahoo.co.jp/search?p=%s&ei=UTF-8',
# 'sc' Google Scholar検索
'-sc': r'http://scholar.google.co.jp/scholar?lr=&q=%s&hl=ja&as_sdt=0,5&as_vis=1',
# '-t': 翻訳
'-t': r'http://ejje.weblio.jp/content/%s'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment