tor-spider/example.php

32 lines
571 B
PHP
Raw Normal View History

<?php
/**
* Created by PhpStorm.
* User: eric
* Date: 12/23/16
* Time: 4:19 PM
*/
require __DIR__ . '/vendor/autoload.php';
$client = new \Sikofitt\Tor\TorClient();
2016-12-24 07:15:34 -08:00
$client->get('http://32b5oz2bbtn6gqj3.onion/index.php/Main_Page');
$images = $client->images();
foreach($images as $image)
{
$result[] = $image->toArray();
}
$client->get('http://4sy6ebszykvcv2n6.onion/');
2016-12-24 07:15:34 -08:00
$images = $client->images();
//dump($images);
2016-12-24 07:15:34 -08:00
//$client->get('https://de.indymedia.org/index.shtml');
foreach($images as $image) {
$result[] = $image->toArray();
}
dump($result);
2016-12-24 07:15:34 -08:00