grabbing search results

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bobby9101
Forum Commoner
Posts: 28
Joined: Thu Apr 27, 2006 1:18 pm

grabbing search results

Post by bobby9101 »

hey all (my first post)(and no, i didn't want to register, get help, and then leave)
Well anyway
I am running a search script on my site that grabs links from my database
i would also like to use that variable (the search term) and display the google results for that term.
I made it so that it grabs the variable and then inserts it into a google url like this: http://www.google.com/search?hl=en&q=SE ... gle+Search
however I have no clue on how to display these results
any ideas?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Have you read the terms of use at the google site?
Anyway, to do this stuff i can only advise to use the Google API.. Which allows you to do this in a more elegant way than screen-scraping...
bobby9101
Forum Commoner
Posts: 28
Joined: Thu Apr 27, 2006 1:18 pm

Post by bobby9101 »

how do meta search engines do it?
Post Reply