title: Sending scrape request for getting torrent's seeds and peers
body: <p>I have been trying to create a torrent site but I'm stuck with the following.
  How to send torrent scrape request to get its seeder and leechers?</p>
  
  <p>I have a PHP class function that provides me announce list.</p>
  
  <pre><code>public function getTrackers() {
      // Load tracker list
      $trackerlist = array();
  
      if ( $this-&gt;torrent-&gt;get_value('announce-list') )
      {
          $trackers = $this-&gt;torrent-&gt;get_value('announce-list')-&gt;get_plain();
          while ( list( $key, $value ) = each( $trackers ) )
          {
              if ( is_array( $value-&gt;get_plain() ) ) {
                  while ( list( $key, $value2 ) = each( $value ) )
                  {
                      while ( list( $key, $value3 ) = each( $value2 ) )
                      {
                          array_push( $trackerlist, $value3-&gt;get_plain() );
                      }
                  }
              } else {
                  array_push( $trackerlist, $value-&gt;get_plain() );
              }
          }
      }
      else if ( $this-&gt;torrent-&gt;get_value('announce') )
      {
          array_push( $trackerlist, $this-&gt;torrent-&gt;get_value('announce')-&gt;get_plain() );
      }
  
      return $trackerlist;
  }
  </code></pre>
  
  <p>This code is based on the data encoded by the <strong>bencode.php</strong>. How to show <strong>Seeds</strong> and <strong>Peers</strong> of every consecutive announce url like this?</p>
  
  <pre><code>Annouce Url | Seeds : No. | Peers: No.     
  Annouce Url | Seeds : No. | Peers: No.     
  Annouce Url | Seeds : No. | Peers: No. 
  and so on.....
  </code></pre>