[Solved] get file content from url, then extract keywords [closed]


See this link. Don’t expect people to do your homework, study that code a little bit and you will find answer in less then 10 minutes. Basically when you decode json you will get object or array depending on what you want. So if you do this

   $data=json_decode($str);//$str is your json string
   foreach($data->items as $item){
      foreach($item as $bookdata){
         if(is_object($bookdata) && isset($bookdata->title)){
                echo $bookdata->title ; 
              }
           } 
        }

I am leaving it to you to figure out how to get authors 😉 Combine this and previous answer and you are there

solved get file content from url, then extract keywords [closed]