Code Monkey home page Code Monkey logo

laracasts-downloader's Introduction

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.

Working good at 07/12/2019

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

Installation

  • Clone this repo to a folder in your machine
  • Change your info in .env.example and rename it to .env
    • Go to laracasts.com --> Browse, open Dev Tools --> Network, find a request to algolia.net and save x-algolia-api-key and x-algolia-application-id values to your .env
  • composer install
  • php start.php and you are done!

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 series

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

Command to download lessons

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

Using Docker

  • Clone this repo to a folder in your machine
  • Change your info in .env.example and rename it to .env
  • docker build -t image-name .
  • docker run -d -v /host-path:/container-path-in-config.ini image-name and the path should be absolute

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.