Ejemplo n.º 1
0
 /**
  * Get and save full news item body from screenrant.
  * 
  * @param  News   $news 
  * @return News
  */
 public function getFullNewsItem(News $news)
 {
     $html = $this->scraper->getSingle($news->full_url);
     $news->body = $html;
     $news->fully_scraped = 1;
     $news->save();
     return $news;
 }
Ejemplo n.º 2
0
 /**
  * Updates news from external sources.
  * 
  * @return void
  */
 public function updateNews()
 {
     $this->newsScraper->all();
 }