Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Playing With Google's Search Engine
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 09 September 2008 :  15:34:00  Show Profile  Reply with Quote
Ever want to just look up random words in a search engine to see whether any page on the net has them all? I was bored, so I wrote a little routine to use a dictionary database & auto-search Google.
It uses the dictionary database from Atomic's spell-checker mod.

Basically, put the dictionary & the asp file in the same directory, run the file, done. I have it creating 20 different searches - if you want to change it, feel free.


<%
strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=dictionary2000.mdb"
For y = 1 to 20	'Number of searches to create
	strLst="%2B"
	for x = 1 to 5	'Number of words per search
		Randomize
		q=int(Rnd*113808)
		set my_Conn = Server.CreateObject("ADODB.Connection")
		my_Conn.Open strConnString
		strSql="SELECT WORD FROM DICTIONARY WHERE id=" & q
		set rsDict = my_conn.Execute(strSql)
		strLst=strLst&rsDict("Word") & " %2B"
	next
	for x = 1 to 5	'Add in a 5-letter word with random characters
		Randomize
		q=(Rnd*26)
		strAlp="abcdefghijklmnopqrstuvwxyz"
		strLst=strLst&mid(strAlp,q,1)
	Next
	strLst=strLst&" -dictionary -wordlist"
	url="http://www.google.com/search?hl=en&q="""&strLst&"""&btnG=Search"
	Response.Write("<script>" & vbCrLf)
	Response.Write("window.open('" & url & "');" & vbCrLf)
	Response.Write("</script>")
next
%>
<

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 09 September 2008 :  17:47:01  Show Profile  Visit MarkJH's Homepage  Reply with Quote
http://www.googlewhack.com/ <

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 10 September 2008 :  11:44:53  Show Profile  Reply with Quote
[Link]

<

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07