Skip to content

Commit

Permalink
rm UA
Browse files Browse the repository at this point in the history
  • Loading branch information
justzx2011 committed Nov 13, 2014
1 parent 2329d94 commit 6fc7a9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openyoudao.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ def record_callback(reply):
g_tar.close()
gl.homeurl= "file://" + gl.googledir
if gl.Dict=="youdao":
os.system("curl -m 5 -A \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.120 Chrome/37.0.2062.120 Safari/537.36\" -s -w %{http_code}:%{time_connect}:%{time_starttransfer}:%{time_total}:%{speed_download} -o \'" + gl.origindir +"\' \'" + url+ "\'") #获得网页(非代理)
#os.system("curl -m 5 -A \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.120 Chrome/37.0.2062.120 Safari/537.36\" -s -w %{http_code}:%{time_connect}:%{time_starttransfer}:%{time_total}:%{speed_download} -o \'" + gl.origindir +"\' \'" + url+ "\'") #获得网页(非代理)
os.system("curl -m 5 -s -w %{http_code}:%{time_connect}:%{time_starttransfer}:%{time_total}:%{speed_download} -o \'" + gl.origindir +"\' \'" + url+ "\'") #获得网页(非代理)
fusionyoudao.reconstruct(gl.func)
gl.homeurl="file://" + gl.resultdir #合成最终缓冲访问地址
if Alive==1:
Expand Down

0 comments on commit 6fc7a9c

Please sign in to comment.