2017 © Pedro Peláez
 

library packtub-crawler

a minimal library to download ebooks from packtub.com

image

hu.alphabox/packtub-crawler

a minimal library to download ebooks from packtub.com

  • Sunday, February 25, 2018
  • by mecseid
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

packtub-crawler

Introduction

packtub-crawler is a simple, minimalistic PHP library to crawl your ebooks from https://www.packtpub.com. You can list your available books, and download those in different formats with source code (if available)., (*1)

Installation

Install the latest version with, (*2)

$ composer require alphabox/packtub-crawler

Usage

A simple usage example to list your all available ebook., (*3)

pushHandler(new StreamHandler('php://stdout', Logger::DEBUG));

//Login to Packtub site
$logger->info("Login to packtub.com");
$packtub = new PacktubSite($logger);
$packtub->login('user@example.com', "supersecretpassword");

$logger->info("Get and list available books.");
foreach( $packtub->getAvailableBooks() as $title => $formats ) {
    $logger->info($title);
}

?>

License

This project licensed under Apache 2.0 License - see the LICENSE file for details, (*4)

The Versions

25/02 2018

dev-master

9999999-dev

a minimal library to download ebooks from packtub.com

  Sources   Download

Apache-2.0

The Requires

 

by Daniel Mecsei

ebook packtub