All Projects → carlosflorencio → Laracasts Downloader

carlosflorencio / Laracasts Downloader

Licence: mit
Downloads new lessons and series from laracasts if there are updates. Or the whole catalogue.

Projects that are alternatives of or similar to Laracasts Downloader

Ficsave
This is the repo for FicSave, an open-source online fanfiction downloader.
Stars: ✭ 172 (-69.61%)
Mutual labels:  laravel, downloader
Laravel Pdf
📄 Easily generate PDF documents from HTML inside of Laravel 5
Stars: ✭ 552 (-2.47%)
Mutual labels:  laravel
Laravel Eloquent Query Cache
Adding cache on your Laravel Eloquent queries' results is now a breeze.
Stars: ✭ 529 (-6.54%)
Mutual labels:  laravel
Ecommerce Open Api
果酱小店:基于 Laravel + swoole + 小程序的开源电商系统,优雅与性能兼顾 : )
Stars: ✭ 546 (-3.53%)
Mutual labels:  laravel
Curl
Custom PHP curl library for the Laravel 5 framework - developed by Ixudra
Stars: ✭ 537 (-5.12%)
Mutual labels:  laravel
Blade
🔪 A standalone version of Laravel's Blade templating engine for use outside of Laravel.
Stars: ✭ 542 (-4.24%)
Mutual labels:  laravel
Tenanti
[Package] Multi-tenant Database Schema Manager for Laravel
Stars: ✭ 525 (-7.24%)
Mutual labels:  laravel
Laravel Soap
A soap client wrapper for Laravel
Stars: ✭ 559 (-1.24%)
Mutual labels:  laravel
Sudo Su
Laravel package to easily login as other users during development.
Stars: ✭ 554 (-2.12%)
Mutual labels:  laravel
Laravel Firewall
Web Application Firewall (WAF) package for Laravel
Stars: ✭ 544 (-3.89%)
Mutual labels:  laravel
Laravel Mediable
Laravel-Mediable is a package for easily uploading and attaching media files to models with Laravel 5.
Stars: ✭ 541 (-4.42%)
Mutual labels:  laravel
Laravel Blade X
Use custom HTML components in your Blade views
Stars: ✭ 538 (-4.95%)
Mutual labels:  laravel
Framework
The Laravel Framework.
Stars: ✭ 25,679 (+4436.93%)
Mutual labels:  laravel
Compoships
Multi-columns relationships for Laravel's Eloquent ORM
Stars: ✭ 537 (-5.12%)
Mutual labels:  laravel
Ip Location Zh
获取 IP 地址的真实地理位置
Stars: ✭ 556 (-1.77%)
Mutual labels:  laravel
Init.engineer
這是一份純靠北工程師的專案,請好好愛護它,謝謝。
Stars: ✭ 528 (-6.71%)
Mutual labels:  laravel
Laravel Vue Pagination
A Vue.js pagination component for Laravel paginators that works with Bootstrap
Stars: ✭ 541 (-4.42%)
Mutual labels:  laravel
Flutter downloader
Flutter Downloader - A plugin for creating and managing download tasks. Supports iOS and Android. Maintainer: @hnvn
Stars: ✭ 546 (-3.53%)
Mutual labels:  downloader
Laravel View Xray
Take a look into your Laravel views
Stars: ✭ 565 (-0.18%)
Mutual labels:  laravel
Laravel Model States
State support for models
Stars: ✭ 559 (-1.24%)
Mutual labels:  laravel

Laracasts Downloader

Join the chat at https://gitter.im/laracasts-downloader SensioLabsInsight Scrutinizer Code Quality Build Status

Downloads new lessons and series from laracasts if there are updates. Or the whole catalogue.

Currently looking for maintainers.

LIMITED FUNCTIONALITY NOTE:

Due to recent changes in the structure of the series page, it is no longer possible to fetch the full catalog of lessons and series. Between a lengthy (unknown) delay on algolia indexing, and incomplete list of content on the series page, ability to download is severely hindered.

Description

Syncs your local folder with the laracasts website, when there are new lessons the app download it for you. If your local folder is empty, all lessons and series will be downloaded!

A .skip file is used to prevent downloading deleted lessons for these with space problems. Thanks to @vinicius73

Just call php makeskips.php before deleting the lessons.

An account with an active subscription is necessary!

Even to download free lessons or series. The download option is only allowed to users with a valid subscription.

Requirements

  • PHP >= 5.4
  • php-cURL
  • php-xml
  • php-json
  • Composer

OR

  • Docker

Installation

  1. Clone this repo to your local machine.
  2. Make a local copy of the .env file:
$ cp .env.example .env
  1. Update the .env with your login and API information. To obtain this, do the following:
    • Go to laracasts.com and navigate to the Browse page.
    • Open your browsers Dev Tools and open the Network tab, then refresh the page.
    • Find an XHR request to algolia.net and look at the request URL.
    • Within the URL, find the GET parameters:
      • Copy the x-algolia-application-id value to ALGOLIA_APP_ID in .env.
      • Copy the x-algolia-api-key value to ALGOLIA_API_KEY in .env.
  2. The next steps, choose if you want a local installation or a Docker based installation and follow along.

Using your local machine

  1. Install project dependencies:
$ composer install
  1. To run a download of all content, run the following command:
$ php start.php [empty for all OR provide flags]
  1. See downloading specific series or lessons for optional flags.

Using Docker

  1. Build the image:
$ docker-compose build
  1. Install project dependencies:
$ docker-compose run --rm composer
  1. Then, run the command of your choice as if we were running it locally, but instead against the docker container:
$ docker-compose run --rm laracastdl php ./start.php [empty for all OR provide flags]
  1. See downloading specific series or lessons for optional flags.

Also works in the browser, but is better from the cli because of the instant feedback.

Downloading specific series or lessons

  • You can use series and lessons names
  • You can use series and lessons slugs (preferred because there are some custom slugs too)
  • You can download multiples series/lessons

Commands to download an entire series

You can either use the Series slug (preferred):

$ php start.php -s "series-slug-example"
$ php start.php --series-name "series-slug-example"

Or the Series name:

$ php start.php -s "Series name example"
$ php start.php --series-name "Series name example"

Filter to download specific episodes of a series

You can provide episode number(s) saperated by comma ,: You can add 1 or more episodes.

$ php start.php -s "lesson-slug-example" -e "12,15"
$ php start.php --series-name "series-slug-example" --series-episodes "12,15"

Or the with Series name:

$ php start.php -s "Series name example" -e "12"
$ php start.php --series-name "Series name example" --series-episodes "12"

This will only download episodes which you mentioned in -e or --series-episodes flag, it will also ignor already downloaded episodes as usual.

Command to download specific lessons

You can either use the Lessons slug (preferred):

$ php start.php -l "lesson-slug-example"
$ php start.php --lesson-name "lesson-slug-example"

Or the Lesson name:

$ php start.php -l "Lesson name example"
$ php start.php --lesson-name "Lessons name example"

Troubleshooting

If you have a cURL error 60: SSL certificate problem: self signed certificate in certificate chain or SLL error: cURL error 35 do this:

And you are done! If using apache you may need to restart it.

License

This library is under the MIT License, see the complete license here

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].