82df35a59b
This is a major change for the next release of Miniflux. - There is now only one database that can supports multiple users - There is no automated schema migration for this release - A migration procedure is available in the ChangeLog file
22 lines
393 B
PHP
22 lines
393 B
PHP
<?php
|
|
|
|
namespace Miniflux\Handler\Scraper;
|
|
|
|
use PicoFeed\Scraper\Scraper;
|
|
use Miniflux\Handler;
|
|
|
|
function download_content($url)
|
|
{
|
|
$contents = '';
|
|
|
|
$scraper = new Scraper(Handler\Feed\get_reader_config());
|
|
$scraper->setUrl($url);
|
|
$scraper->execute();
|
|
|
|
if ($scraper->hasRelevantContent()) {
|
|
$contents = $scraper->getFilteredContent();
|
|
}
|
|
|
|
return $contents;
|
|
}
|