website scraping with laravel

Building A Simple Scraping Website With PHP Laravel Part3: Article Display

In this part of the tutorial (Building a simple scraping website) we will finish up by displaying the articles we fetched in previous part in the home page.

 

 

Series Topics:

 

We will update our home controller and add the code required to display the latest articles and articles by a specific category.

Open app/Http/Controllers/HomeController.php and modify it like this:

resources/views/home.blade.php

resources/views/category.blade.php

resources/views/details.blade.php

 

What’s Missing?

Now after you tried the scraping when clicking on link now you need away to implement it automatically, well this need to be run in something like cronjob, i leave this part to you as an assignment.

 

Share this: