Given this curl command: curl --user-agent "fogent" --silent -o page.html " http://www.google.com/search?q=insansiate "
* Spelling intentionally incorrect. I want to get an offer as a result.
I want to be able to grep in the page.html file, possibly using grep -oE or hide it directly from curl and never store the file.
The result should be: 'instantiate'
All I need is the word “instance," or the phrase, whatever Google automatically corrects, is what I want.
Here is the basic html that is returned:
<span class=spell style="color:#cc0000">Did you mean: </span><a href="/search?hl=en&ie=UTF-8&&sa=X&ei=VEMUTMDqGoOINraK3NwL&ved=0CB0QBSgA&q=instantiate&spell=1"class=spell><b><i>instantiate</i></b></a> <span class=std>Top 2 results shown</span>
So, perhaps from / to the line below, which I hope is unique enough to cover all of my databases.
class=spell><b><i>instantiate</i></b></a>
grep; , , html prettify tool , 50 . , bash, , , . perl , .
, ?