Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Google: "Did you mean:"
#3
Well...I think I have it figured out!

Spell Check with google "Did you mean:"
Code:
Copy      Help
out
str SearchWord="Joey Figjiani"
str GoogleWord=SearchWord
GoogleWord.findreplace(" " "+")

str url.format("http://www.google.com/search?hl=en&q=%s" SearchWord)
HtmlDoc d.InitFromWeb(url)
str s2=d.GetText("LI")
if _s.get(s2 0 14)="Did you mean: "
,s2.findreplace("Did you mean: " "")
,strrev s2
,s2.findreplace("nwohs stluser 2 poT  " "")
,strrev s2
,SearchWord=s2
else
,out "Word had no suggestions:"
out SearchWord


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)