Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Assume that i got the search result page as string in HTML format. The key word is "google earth", so the URL may be like this:
http://www.google.com/search?hl=en&newwindow=1&q=google+earth&aq=f&aqi=&aql=&oq=&gs_rfai=
In the first search result page, there are ten results, i want to get the information about the ten results, what should i do then.
In a word, i have an URL(the result of search) and how could i get the results(URL, title, description)?
Posted

You simply look for the pattern and parse (or more extract) the links based on the predefined rules. Here a link to a php example that you could simply translate to c/cpp.

http://www.roscripts.com/snippets/show/141[^]

Good luck!
 
Share this answer
 
Thank you for your reply, i don't do PHP, but your link give me a good tip, i decide to parse the informations i need myself, thank you again. :-D
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900