[ 'name' => 'Feed sub-URL', 'type' => 'text', 'required' => true, 'title' => 'Select the sub-feed (see https://www1.folha.uol.com.br/feed/)', 'exampleValue' => 'emcimadahora/rss091.xml', ], 'amount' => [ 'name' => 'Amount of items to fetch', 'type' => 'number', 'defaultValue' => 15, ], 'deep_crawl' => [ 'name' => 'Deep Crawl', 'description' => 'Crawl each item "deeply", that is, return the article contents', 'type' => 'checkbox', 'defaultValue' => true, ], ] ]; protected function parseItem(array $item) { if ($this->getInput('deep_crawl')) { $articleHTMLContent = getSimpleHTMLDOMCached($item['uri']); if ($articleHTMLContent) { foreach ($articleHTMLContent->find('div.c-news__body .is-hidden') as $toRemove) { $toRemove->innertext = ''; } $item_content = $articleHTMLContent->find('div.c-news__body', 0); if ($item_content) { $text = $item_content->innertext; $text = strip_tags($text, '