modified: composer.json modified: composer.lock new file: example.php modified: src/Sikofitt/Tor/Collection/ImageCollection.php modified: src/Sikofitt/Tor/TorClient.php modified: tor-client/bin/tor modified: tor-client/bin/tor-gencert modified: tor-client/bin/tor-resolve modified: tor-client/etc/tor/torrc.sample modified: tor-client/share/doc/tor/tor.html modified: tor-client/share/man/man1/tor.1
26 lines
587 B
PHP
26 lines
587 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: eric
|
|
* Date: 12/23/16
|
|
* Time: 4:19 PM
|
|
*/
|
|
|
|
require __DIR__ . '/vendor/autoload.php';
|
|
|
|
$client = new \Sikofitt\Tor\TorClient();
|
|
//$client->get('http://32b5oz2bbtn6gqj3.onion/index.php/Main_Page');
|
|
$client->get('http://4sy6ebszykvcv2n6.onion/');
|
|
|
|
//$client->get('https://de.indymedia.org/index.shtml');
|
|
|
|
$images = $client->images();
|
|
//dump($images);
|
|
foreach($images as $image) {
|
|
|
|
$result[] = $image->toArray();
|
|
}
|
|
dump($result);
|
|
dump(json_encode(serialize($result)));
|
|
file_put_contents('data.json', json_encode($result, JSON_PRETTY_PRINT));
|