We have to store the first 20 search engine results (URLS and id) in the Mysql database. We referred to the google search API, it says we will get results in JSOn/ATOM format, but we are not getting exactly how to store those results in JSON format (httptitle, snippet etc attributes) into the database. Do we need to do parsing? Actually it is a module of the project so can we do it without any parsing? As in how to pass parameters on JSON into the table in the database.
Share
I suggest you use a Java JSON Library which lets you parse json string to java objects and vice versa(See json-simple and gson). Then you can extract the required information from those objects and store them in database. Your database table should have columns like search engine name, query string, url, id etc.