if len(sys.argv)>1: debug = 1 get_query(debug) if len(WORD) > 0: r = ord(WORD[0]) r %= len(CON_KEYS) keywords = CON_KEYS[r] else: keywords = CON_KEYS[0] orgword = WORD urlword = orgword.replace(' ','+') #adtemplate.adHead(keywords, "애니딕: %s" % WORD) adtemplate.googleHead(orgword) adtemplate.adLogo(keywords) adtemplate.adForm("ad.py", WORD) print "<br/> " adtemplate.adGoogle() if WORD != '' and FUNC == 3: try: req_dic(sys.argv, FUNC, WORD) except: pass
if len(sys.argv)>1: debug = 1 get_query(debug) if len(WORD) > 0: r = ord(WORD[0]) r %= len(CON_KEYS) keywords = CON_KEYS[r] else: keywords = CON_KEYS[0] orgword = WORD urlword = orgword.replace(' ','+') #adtemplate.adHead(keywords, "애니딕: %s" % WORD) adtemplate.googleHead(orgword, keywords, "애니딕: %s" % WORD) adtemplate.adLogo(keywords) adtemplate.adForm("ad.py", WORD) print "<br/> " adtemplate.adGoogle() QUERY = "F=%d\\&W=%s" % (FUNC, orgword.replace(' ','+') ) if PAGE != 0: QUERY += "\\&P=%d" % PAGE size_adresult = 0 #if FUNC != 3: print QUERY
get_query(debug) if len(WORD) > 0: r = ord(WORD[0]) r %= len(CON_KEYS) keywords = CON_KEYS[r] else: keywords = CON_KEYS[0] orgword = WORD urlword = orgword.replace(' ','+') #keywords = "인터넷 영영 사전 애니딕: " + keywords keywords = "인터넷 영영 사전 애니딕 " #adtemplate.adHead(keywords, "애니딕: %s" % WORD) adtemplate.googleHead(orgword, keyword=keywords) adtemplate.adLogo(keywords) adtemplate.adForm("ad.py", WORD) print "<br/> " adtemplate.adGoogle() QUERY = "F=%d\\&W=%s" % (FUNC, orgword.replace(' ','+') ) if PAGE != 0: QUERY += "\\&P=%d" % PAGE print """<a href="#eedict"> 영영사전 바로가기 </a>""" size_eedict = 0