예제 #1
0
파일: gsearch.py 프로젝트: eox03y/OldWorks
	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/> &nbsp; &nbsp;"
	adtemplate.adGoogle()


	if WORD != '' and FUNC == 3:
		try:
			req_dic(sys.argv, FUNC, WORD)
		except:
			pass
예제 #2
0
	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/> &nbsp; &nbsp;"
	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
예제 #3
0
파일: ad.py 프로젝트: handol/python_study
	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/> &nbsp; &nbsp;"
	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