Filtering/Searching Some Text (cfhttp.fileContent)
Posted on 2004-04-20
Hi I am new to this.
I know that I can submit to a form using cfhttp and get the output to display by doing:
I don't really need the output to be displayed for the user, but I do need to go into this output and find some specific strings.
For example if I submitted a search string to the Google.com search textbox and the cfhttp.fileContent is all the results page for my search, how do I filter through the html of that returned page to locate only the words: "Results 1 - 10 of about 9,490,000 " so that I can insert that into my database. I don't need to display the results page to anyone, I just need to grab that one sentence for my database.
This is a wild uneducated guess but do I specify a 'file' and 'path' to save the results page to and in that page make some kind of function that locates the required text and inserts into database and toss out the rest?