A small script to collect direct download link of Naruto. Its easier and more efficient rather than browse through the site episode by episode, then find a link to the download site, and messing with their super annoying auto-popup-ads. Thank you to the site's owner he made the permalink well organized so we don't need to search it first. Also rocks SF because they don't required us to enter captcha, click generate-link-button, etc. :)
First, we need a scrapper package, Goutte. Install it with composer:
composer require "fabpot/goutte:2.*"
Then simply put the
scrapper.php inside the directory where you run the composer command.
To get a download link for an episode, simply run
php scrapper.php [episode]. E.g.
php scrapper.php 333
Voila! You've got the link and you should be know what to do next. :)
Notes: It works as long it has the same permalink patern
Hint: You can simply generate links for a range of episodes by