瀏覽代碼

removed excess print, fixed readme

Benjamin Gleitzman 12 年之前
父節點
當前提交
7bb6a0325d
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 2 2
      README.md
  2. 0 1
      howdoi.py

+ 2 - 2
README.md

@@ -50,8 +50,8 @@ Usage:
 
     optional arguments:
       -h, --help         show this help message and exit
-      -p POS, --pos POS  return answer in specified position (default: 1)
-      -f, --full         return the full text of the answer
+      -p POS, --pos POS  select answer in specified position (default: 1)
+      -f, --full         display the full text of the answer
       -l, --link         display only the answer link
 
 Extra notes:

+ 0 - 1
howdoi.py

@@ -22,7 +22,6 @@ DUCK_SEARCH_URL = "http://duckduckgo.com/html?q=site%3Astackoverflow.com%20{0}"
 USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1309.0 Safari/537.17"
 
 def get_result(url):
-    print url
     opener = urllib2.build_opener()
     opener.addheaders = [('User-agent', USER_AGENT)]
     result = opener.open(url)