title: scraping data from truecaller
body: <p>I have 200K phone number and i want to get there city using truecaller , how to do that ?
  as you know truecaller has a restriction per requests ,, </p>
  
  <p>somebody do this here : 
  <a href="https://www.phphive.info/324/truecaller-api/" rel="noreferrer">https://www.phphive.info/324/truecaller-api/</a></p>
  
  <p>this is mycode : </p>
  
  <pre><code> $cookieFile = dirname(__file__) . DIRECTORY_SEPARATOR . 'cookies';
      $no = $users[0];
      $url = "https://www.truecaller.com/api/search?type=4&amp;countryCode=sd&amp;q=" . $no;
      $ch = curl_init();
      $header = array();
      $header[] = 'Content-length: 0';
      $header[] = 'Content-type: application/json';
      $header[] = 'Authorization: Bearer i03~CNORR-VIOJ2k~Hua_GBt73sKJJmO';
      curl_setopt($ch, CURLOPT_URL, $url);
      curl_setopt($ch, CURLOPT_COOKIEFILE, $cookieFile);
  
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
      curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
      curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
      $data = curl_exec($ch);
      $error = curl_error($ch);
      curl_close($ch);
      $data = json_decode($data, true);
      $name = $data['data'][0]['name'];
      $altname = $data['data'][0]['altName'];
      $gender = $data['data'][0]['gender'];
      $about = $data['data'][0]['about'];
  </code></pre>