2015-06-21 15:56:36 +02:00
|
|
|
<?php
|
|
|
|
return array(
|
|
|
|
'grabber' => array(
|
|
|
|
'%.*%' => array(
|
|
|
|
'body' => array(
|
|
|
|
'//img[@id="strip"]',
|
2015-10-20 04:49:30 +02:00
|
|
|
'//a/div[@id="nx"]/..',
|
2015-06-21 15:56:36 +02:00
|
|
|
),
|
|
|
|
'strip' => array(),
|
2015-10-20 04:49:30 +02:00
|
|
|
'test_url' => 'http://oglaf.com/slodging/',
|
|
|
|
),
|
2015-06-21 15:56:36 +02:00
|
|
|
),
|
|
|
|
'filter' => array(
|
|
|
|
'%.*%' => array(
|
2015-10-20 04:49:30 +02:00
|
|
|
'%alt="(.+)" title="(.+)" */>%' => '/><br/>$1<br/>$2<br/>',
|
2015-06-21 15:56:36 +02:00
|
|
|
'%</a>%' => 'Next page</a>',
|
2015-10-20 04:49:30 +02:00
|
|
|
),
|
|
|
|
),
|
2015-06-21 15:56:36 +02:00
|
|
|
);
|